Update 'Main-Installer.sh'

This commit is contained in:
tbergervoet
2018-10-05 14:30:45 +02:00
parent 7b98908b18
commit 098195fe8c

View File

@@ -118,11 +118,9 @@ sed -i 's/;preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud.
timedatectl set-timezone Europe/Amsterdam timedatectl set-timezone Europe/Amsterdam
sed -i 's/#/vm.swappiness=10/g' /etc/sysctl.conf sed -i 's/#/vm.swappiness=10/g' /etc/sysctl.conf
sed -i 's/#/vm.vfs_cache_pressure=50/g' /etc/sysctl.conf sed -i 's/#/vm.vfs_cache_pressure=50/g' /etc/sysctl.conf
cat <<EOF > /etc/cron.weekly/update.sh cat <<EOF > /etc/crontab
#!/bin/sh # m h dom mon dow user command
apt update 0 3 * * 1 root apt update && apt upgrade -y
apt upgrade -y
apt autoclean
EOF EOF
ufw allow OpenSSH ufw allow OpenSSH
ufw allow 443/tcp ufw allow 443/tcp