From 9ae38e0b5132ac0cc11ec96c6827004aff68d665 Mon Sep 17 00:00:00 2001 From: simono41 Date: Mon, 5 Aug 2019 13:48:32 +0200 Subject: [PATCH] server_optimize --- server_optimize.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/server_optimize.sh b/server_optimize.sh index 2514b60..9b4ab16 100755 --- a/server_optimize.sh +++ b/server_optimize.sh @@ -90,10 +90,10 @@ echo function dailyupdates() { echo "#!/bin/bash" > /etc/cron.daily/update-packages - echo -n "apt update && apt upgrade -y" >> /etc/cron.daily/update-packages + echo "apt update && apt upgrade -y" >> /etc/cron.daily/update-packages echo "ROOT" >> /etc/cron.daily/update-packages echo "EXITVALUE=\$?" >> /etc/cron.daily/update-packages - echo "if [ \$EXITVALUE != 0 ]; then" >> $/etc/cron.daily/update-packages + echo "if [ \$EXITVALUE != 0 ]; then" >> /etc/cron.daily/update-packages echo " /usr/bin/logger -t update-packages \"ALERT exited abnormally with [\$EXITVALUE]\"" >> /etc/cron.daily/update-packages echo "fi" >> /etc/cron.daily/update-packages echo "exit \$EXITVALUE" >> /etc/cron.daily/update-packages