mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-02-01 09:27:44 +01:00
Update 02-init_steps.sh
https://github.com/alexbelgium/hassio-addons/issues/1170
This commit is contained in:
@@ -43,14 +43,6 @@ else
|
|||||||
CURRENTVERSION="Not found"
|
CURRENTVERSION="Not found"
|
||||||
fi
|
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 " "
|
echo " "
|
||||||
|
|
||||||
# If not installed, or files not available
|
# If not installed, or files not available
|
||||||
@@ -83,6 +75,18 @@ fi
|
|||||||
|
|
||||||
echo " "
|
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 #
|
# DISABLE MAINTENACE MODE #
|
||||||
###########################
|
###########################
|
||||||
|
|||||||
Reference in New Issue
Block a user