mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-25 05:56:28 +01:00
Update 02-init_steps.sh
This commit is contained in:
@@ -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
|
||||||
|
|||||||
Reference in New Issue
Block a user