From 1f5690cf5e9f0943e775d0951f75c0d640e93e17 Mon Sep 17 00:00:00 2001 From: ictmaatwerk Date: Wed, 12 Sep 2018 13:03:15 +0000 Subject: [PATCH] 'Main-Installer.sh' updaten --- Main-Installer.sh | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/Main-Installer.sh b/Main-Installer.sh index bfcce41..72f41f3 100644 --- a/Main-Installer.sh +++ b/Main-Installer.sh @@ -104,12 +104,12 @@ done #-------------------# cd /tmp -apt-get update -apt-get upgrade -y -apt-get dist-upgrade -y -apt install rsync grsync sshpass -y -apt-get clean -apt-get autoremove -y +apt update +apt upgrade -y +apt dist-upgrade -y +apt install -y rsync grsync sshpass +apt clean +apt autoremove -y hostnamectl set-hostname $domain sed -i 's/;preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud.cfg timedatectl set-timezone Europe/Amsterdam @@ -120,7 +120,7 @@ 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-get update -y && apt-get upgrade -y &&apt-get dist-upgrade -y +0 0 * * * apt update -y && apt upgrade -y && apt dist-upgrade -y EOF ufw allow OpenSSH ufw allow 443/tcp