mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-07-15 02:20:31 +02:00
Update 02-init_steps.sh
This commit is contained in:
@@ -50,7 +50,7 @@ if [ -f /reinstall ]; then
|
|||||||
|
|
||||||
else
|
else
|
||||||
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }
|
function version { echo "$@" | awk -F. '{ printf("%d%03d%03d%03d\n", $1,$2,$3,$4); }'; }
|
||||||
if [ "$(version "$(cat /nextcloudversion)")" -ge "$(version "$CURRENTVERSION") ]; then
|
if [ "$(version "$(cat /nextcloudversion)")" -ge "$(version "$CURRENTVERSION")" ]; then
|
||||||
bashio::log.warning "Nexctloud $CURRENTVERSION is installed but $(cat /nextcloudversion) is in this container"
|
bashio::log.warning "Nexctloud $CURRENTVERSION is installed but $(cat /nextcloudversion) is in this container"
|
||||||
if bashio::config.true 'auto_updater'; then
|
if bashio::config.true 'auto_updater'; then
|
||||||
bashio::log.warning "auto_updater configured, update starts now"
|
bashio::log.warning "auto_updater configured, update starts now"
|
||||||
|
|||||||
Reference in New Issue
Block a user