server_optimize

This commit is contained in:
simono41 2019-08-05 13:48:32 +02:00
parent 7b3f4aac28
commit 9ae38e0b51

View file

@ -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