From ea8f7c6eaf8dc8a5b887472f09dfa7d4d5bca732 Mon Sep 17 00:00:00 2001 From: Daniel Hansson Date: Fri, 1 Jan 2021 18:17:25 +0100 Subject: [PATCH] remove unattended upgrades earlier --- nextcloud_install_production.sh | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/nextcloud_install_production.sh b/nextcloud_install_production.sh index 3134c751..b2bb408d 100644 --- a/nextcloud_install_production.sh +++ b/nextcloud_install_production.sh @@ -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