Correct version code

This commit is contained in:
Alexandre
2023-07-21 15:19:27 +02:00
parent 07ddd45c86
commit 4f0694d2b2

View File

@@ -27,7 +27,7 @@ if [ -f /notinstalled ]; then exit 0; fi
# Check current version
if [ -f /data/config/www/nextcloud/config/config.php ]; then
CURRENTVERSION="$(sed -n "s|.*\OC_VersionString = '*\(.*[^ ]\) *';.*|\1|p" /data/config/www/nextcloud/config/config.php)"
CURRENTVERSION="$(sed -n "s|.*version.*' => '*\(.*[^ ]\) *',.*|\1|p" /data/config/www/nextcloud/config/config.php)"
else
CURRENTVERSION="Not found"
fi