'Main-Installer.sh' updaten

This commit is contained in:
ictmaatwerk
2018-09-12 13:03:15 +00:00
parent e85a369f4b
commit 1f5690cf5e

View File

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