mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 18:31:02 +01:00
Update 02-init_steps.sh
This commit is contained in:
@@ -31,17 +31,18 @@ done
|
||||
# Check currently installed version
|
||||
if [ -f /data/config/www/nextcloud/version.php ]; then
|
||||
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/version.php)"
|
||||
bashio::log.info "--------------------------------------"
|
||||
bashio::log.info "Nextcloud $CURRENTVERSION is installed"
|
||||
bashio::log.info "--------------------------------------"
|
||||
else
|
||||
if [ -d /data/config/www/nextcloud ]; then rm -r /data/config/www/nextcloud; fi
|
||||
CURRENTVERSION="$(cat /nextcloudversion)"
|
||||
bashio::log.info "---------------------------------------------------------------------------------------------------------------"
|
||||
bashio::log.info "No Nextcloud version installed, please wait for startup, login Webui, install Nextcloud, then restart the addon"
|
||||
bashio::log.info "---------------------------------------------------------------------------------------------------------------"
|
||||
exit 0
|
||||
fi
|
||||
|
||||
# Inform in log
|
||||
bashio::log.info "--------------------------------------"
|
||||
bashio::log.info "Nextcloud $CURRENTVERSION is installed"
|
||||
bashio::log.info "--------------------------------------"
|
||||
|
||||
#########################
|
||||
# INFORM IF NEW VERSION #
|
||||
#########################
|
||||
|
||||
Reference in New Issue
Block a user