mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-30 11:16:06 +02:00
Update 02-init_steps.sh
This commit is contained in:
@@ -35,7 +35,7 @@ if [[ "$(occ --version >/dev/null)" == *"Composer autoloader not found"* ]]; the
|
|||||||
bashio::log.fatal " "
|
bashio::log.fatal " "
|
||||||
|
|
||||||
# Check currently installed version
|
# Check currently installed version
|
||||||
if [ -f /data/config/www/nextcloud/version.php]; then
|
if [ -f /data/config/www/nextcloud/version.php ]; then
|
||||||
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/version.php)"
|
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/version.php)"
|
||||||
else
|
else
|
||||||
if [ -d /data/config/www/nextcloud ]; then rm -r /data/config/www/nextcloud; fi
|
if [ -d /data/config/www/nextcloud ]; then rm -r /data/config/www/nextcloud; fi
|
||||||
|
|||||||
Reference in New Issue
Block a user