From 60448ac377f3bac5275d2fa6c5c887a2fbe61fa1 Mon Sep 17 00:00:00 2001 From: Ben de Roo Date: Mon, 13 Jul 2026 20:39:23 +0200 Subject: [PATCH] Update DebianTweaks.sh --- DebianTweaks.sh | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/DebianTweaks.sh b/DebianTweaks.sh index e45dfce..d434b12 100755 --- a/DebianTweaks.sh +++ b/DebianTweaks.sh @@ -1,7 +1,7 @@ #!/bin/bash #deze packages zijn nodig -apt install snmpd postfix curl figlet wget gnupg2 -y +apt install fortune snmpd postfix curl figlet wget gnupg2 -y echo "--------------------" echo Set the correct mailer fqdn @@ -19,8 +19,20 @@ cat /tmp/crontab.temp > /etc/crontab rm /tmp/crontab.temp echo "--------------------" -echo Better logon-message -figlet "$(hostname)">/etc/motd +cat > /usr/local/bin/update-motd.sh << 'EOF' +#!/bin/bash + +{ + figlet "$(hostname)" + fortune | cowsay -k tux +} > /etc/motd +EOF + +chmod +x /usr/local/bin/update-motd.sh + +cat >> /etc/crontab << 'EOF' +0 0 * * * root /usr/local/bin/update-motd.sh +EOF echo "--------------------" echo Apt Updates