Automatic disable maintenance mode at addon start

https://github.com/alexbelgium/hassio-addons/discussions/870#discussioncomment-6161138
This commit is contained in:
Alexandre authored and GitHub committed 2023-06-13 11:20:37 +02:00
1 parent 97bed5af97
commit 762a5fa451
1 file changed
+6
@@ -140,6 +140,12 @@ if [ -f /reinstall ]; then
sudo -u abc -s /bin/bash -c "php /data/config/www/nextcloud/occ maintenance:mode --off"
fi
###########################
# DISABLE MAINTENACE MODE #
###########################
sudo -u abc -s /bin/bash -c "php /data/config/www/nextcloud/occ maintenance:mode --off" &>/dev/null || true
##############
# CLEAN OCDE #
##############