Update 'Main-Installer.sh'
This commit is contained in:
@@ -103,12 +103,11 @@ 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
|
||||||
touch /etc/cron.d/updates
|
cat <<EOF > /etc/cron.weekly/update.sh
|
||||||
cat <<EOF > /etc/cron.d/updates
|
#!/bin/sh
|
||||||
SHELL=/bin/sh
|
apt update
|
||||||
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
apt upgrade -y
|
||||||
# m h dom mon dow command
|
apt autoclean
|
||||||
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