'Main-Installer.sh' updaten
This commit is contained in:
@@ -104,12 +104,12 @@ done
|
|||||||
#-------------------#
|
#-------------------#
|
||||||
|
|
||||||
cd /tmp
|
cd /tmp
|
||||||
apt-get update
|
apt update
|
||||||
apt-get upgrade -y
|
apt upgrade -y
|
||||||
apt-get dist-upgrade -y
|
apt dist-upgrade -y
|
||||||
apt install rsync grsync sshpass -y
|
apt install -y rsync grsync sshpass
|
||||||
apt-get clean
|
apt clean
|
||||||
apt-get autoremove -y
|
apt autoremove -y
|
||||||
hostnamectl set-hostname $domain
|
hostnamectl set-hostname $domain
|
||||||
sed -i 's/;preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud.cfg
|
sed -i 's/;preserve_hostname: false/preserve_hostname: true/g' /etc/cloud/cloud.cfg
|
||||||
timedatectl set-timezone Europe/Amsterdam
|
timedatectl set-timezone Europe/Amsterdam
|
||||||
@@ -120,7 +120,7 @@ cat <<EOF > /etc/cron.d/updates
|
|||||||
SHELL=/bin/sh
|
SHELL=/bin/sh
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
||||||
# m h dom mon dow command
|
# 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
|
EOF
|
||||||
ufw allow OpenSSH
|
ufw allow OpenSSH
|
||||||
ufw allow 443/tcp
|
ufw allow 443/tcp
|
||||||
|
|||||||
Reference in New Issue
Block a user