mirror of
https://github.com/alexbelgium/hassio-addons.git
synced 2026-01-11 10:21:02 +01:00
Correct version code
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user