Update 02-init_steps.sh

This commit is contained in:
Alexandre
2023-03-29 14:53:35 +02:00
committed by GitHub
parent 0560a66a80
commit d707dfd29d

View File

@@ -98,12 +98,13 @@ if [ "$(version "$CONTAINERVERSION")" -gt "$(version "$CURRENTVERSION")" ]; then
bashio::log.yellow "New version available : $CONTAINERVERSION" bashio::log.yellow "New version available : $CONTAINERVERSION"
if bashio::config.true 'auto_updater'; then if bashio::config.true 'auto_updater'; then
bashio::log.green "... auto_updater configured, update starts now" bashio::log.green "... auto_updater configured, update starts now"
updater.phar --no-interaction &>/proc/1/fd/1
occ upgrade &>/proc/1/fd/1
# For all versions, update # For all versions, update
for VERSION in seq "${CURRENTVERSION%%.*}" "${CONTAINERVERSION%%.*}"; do #for VERSION in seq "${CURRENTVERSION%%.*}" "${CONTAINERVERSION%%.*}"; do
bashio::log.green "... installing version $VERSION" # bashio::log.green "... installing version $VERSION"
nextcloud_download "latest-$VERSION" # nextcloud_download "latest-$VERSION"
updater.phar --no-interaction &>/proc/1/fd/1 #done
done
else else
bashio::log.yellow "...auto_updater not set in addon options, please update from nextcloud settings" bashio::log.yellow "...auto_updater not set in addon options, please update from nextcloud settings"
fi fi