mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-06-01 05:14:04 +02:00
Correct version code
This commit is contained in:
@@ -27,7 +27,7 @@ if [ -f /notinstalled ]; then exit 0; fi
|
|||||||
|
|
||||||
# Check current version
|
# Check current version
|
||||||
if [ -f /data/config/www/nextcloud/config/config.php ]; then
|
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
|
else
|
||||||
CURRENTVERSION="Not found"
|
CURRENTVERSION="Not found"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user