From 300921ec20eaf52e147240481f8031ca4afcc27d Mon Sep 17 00:00:00 2001 From: tbergervoet Date: Wed, 3 Oct 2018 12:02:51 +0200 Subject: [PATCH] Update 'Main-Installer.sh' --- Main-Installer.sh | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/Main-Installer.sh b/Main-Installer.sh index fe3815d..da0713e 100644 --- a/Main-Installer.sh +++ b/Main-Installer.sh @@ -103,12 +103,11 @@ 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 -touch /etc/cron.d/updates -cat < /etc/cron.d/updates -SHELL=/bin/sh -PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin -# m h dom mon dow command -0 0 * * * apt update -y && apt upgrade -y && apt dist-upgrade -y +cat < /etc/cron.weekly/update.sh +#!/bin/sh +apt update +apt upgrade -y +apt autoclean EOF ufw allow OpenSSH ufw allow 443/tcp