remove unattended upgrades earlier

This commit is contained in:
Daniel Hansson 2021-01-01 18:17:25 +01:00 committed by GitHub
parent 6b1c7fee14
commit ea8f7c6eaf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -212,6 +212,14 @@ stop_if_installed php7.3-fpm
stop_if_installed mysql-common
stop_if_installed mariadb-server
# We don't want automatic updates since they might fail (we use our own script)
if is_this_installed unattended-upgrades
then
apt purge unattended-upgrades -y
apt autoremove -y
rm -rf /var/log/unattended-upgrades
fi
# Create $SCRIPTS dir
if [ ! -d "$SCRIPTS" ]
then
@ -908,14 +916,6 @@ fi
# Set secure permissions final (./data/.htaccess has wrong permissions otherwise)
bash $SECURE & spinner_loading
# We don't want automatic updates since they might fail (we use our own script)
if is_this_installed unattended-upgrades
then
apt purge unattended-upgrades -y
apt autoremove -y
rm -rf /var/log/unattended-upgrades
fi
# Put IP address in /etc/issue (shown before the login)
if [ -f /etc/issue ]
then