Commit 7e4fd8f1 authored by mikhailnov's avatar mikhailnov

first commit

parents
.directory
deboan/system-autoupdate*
#!/bin/sh
# This script must be compatible with POSIX shell to run on all systems
# Use shellcheck to check for POSIX compatibility
# Author: mikhailnov
# License: GPLv3
restart_services(){
if [ -f /etc/system-autoupdate/restart-services/${platform}.list ]
then
restart_services_list="$(cat /etc/system-autoupdate/restart-services/${platform}.list)"
else
restart_services_list="$(cat /usr/lib/system-autoupdate/restart-services/${platform}.list)"
fi
systemctl restart $restart_services_list
}
sync
swapoff -a
swapon -a
systemctl restart zram-config
# list services to restart during system-autoupdate
# example:
# apache2 mysql nginx exim4 dovecot fail2ban
# this file is empty by default at the moment, use /etc/system-autoupdate/restart-services/debian-ubuntu.list to override this list
#!/bin/sh
# This script must be compatible with POSIX shell to run on all systems
# Use shellcheck to check for POSIX compatibility
# Author: mikhailnov
# License: GPLv3
dpkg --configure -a
apt update
sync
apt dist-upgrade -y
sync
restart_services
#systemctl restart apache2 mysql nginx exim4 dovecot fail2ban
sync
apt autoremove -y
sync
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment