Update 02-init_steps.sh

This commit is contained in:
Alexandre
2023-03-23 21:36:06 +01:00
committed by GitHub
parent 98574b50d7
commit 645471b85d

View File

@@ -35,7 +35,7 @@ if [[ "$(occ --version >/dev/null)" == *"Composer autoloader not found"* ]]; the
bashio::log.fatal " "
# 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)"
else
if [ -d /data/config/www/nextcloud ]; then rm -r /data/config/www/nextcloud; fi