From 09a7e76ebcc5c491bedfdffda75c5afc9ee18368 Mon Sep 17 00:00:00 2001 From: Alexandre <44178713+alexbelgium@users.noreply.github.com> Date: Wed, 10 Jan 2024 20:37:48 +0100 Subject: [PATCH] Update 02-init_steps.sh https://github.com/alexbelgium/hassio-addons/issues/1170 --- .../rootfs/etc/cont-init.d/02-init_steps.sh | 20 +++++++++++-------- 1 file changed, 12 insertions(+), 8 deletions(-) diff --git a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh index df2b39d17..02c187f09 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -43,14 +43,6 @@ else CURRENTVERSION="Not found" fi -# Updater apps code -if ! bashio::config.true "disable_updates"; then - bashio::log.green "... checking for app updates" - sudo -u abc -s /bin/bash -c "php /app/www/public/occ app:update --all" -else - bashio::log.yellow "... disable_updates set, apps need to be updated manually" -fi - echo " " # If not installed, or files not available @@ -83,6 +75,18 @@ fi echo " " +#################### +# UPDATER APP CODE # +#################### + +# Updater apps code +if ! bashio::config.true "disable_updates"; then + bashio::log.green "... checking for app updates" + sudo -u abc -s /bin/bash -c "php /app/www/public/occ app:update --all" || true +else + bashio::log.yellow "... disable_updates set, apps need to be updated manually" +fi + ########################### # DISABLE MAINTENACE MODE # ###########################