From 8d827e51c6e81b43a5b3d8b73c0db104e691048a Mon Sep 17 00:00:00 2001 From: bprieshof Date: Fri, 19 Oct 2018 10:14:44 +0200 Subject: [PATCH] Update 'Main-Installer.sh' --- Main-Installer.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Main-Installer.sh b/Main-Installer.sh index e4e4997..b37bda3 100644 --- a/Main-Installer.sh +++ b/Main-Installer.sh @@ -130,10 +130,8 @@ sed -i 's/;preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud. timedatectl set-timezone Europe/Amsterdam sed -i 's/#/vm.swappiness=10/g' /etc/sysctl.conf sed -i 's/#/vm.vfs_cache_pressure=50/g' /etc/sysctl.conf -cat < /etc/crontab -# m h dom mon dow user command -0 3 * * 1 root apt update && apt upgrade -y -EOF + +sed -i "\$a0 3 * * 1 root apt update && apt upgrade -y > /dev/null 2>&1" /etc/crontab systemctl restart cron ufw allow OpenSSH ufw allow 443/tcp