From 1b4e90bfd4a2cb88aa0c0fdc2496f1e679c6bcdd Mon Sep 17 00:00:00 2001 From: Alexandre Date: Fri, 21 Jul 2023 15:27:19 +0200 Subject: [PATCH] Upgrade apps --- nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh | 8 ++++++++ 1 file changed, 8 insertions(+) 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 e1d7dec71..d12a37e79 100755 --- a/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh +++ b/nextcloud/rootfs/etc/cont-init.d/02-init_steps.sh @@ -32,6 +32,14 @@ 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 /data/config/www/nextcloud/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