summaryrefslogtreecommitdiffstats
path: root/11.0/apache
diff options
context:
space:
mode:
Diffstat (limited to '11.0/apache')
-rwxr-xr-x11.0/apache/entrypoint.sh4
1 files changed, 2 insertions, 2 deletions
diff --git a/11.0/apache/entrypoint.sh b/11.0/apache/entrypoint.sh
index 9298bb47..0568aac1 100755
--- a/11.0/apache/entrypoint.sh
+++ b/11.0/apache/entrypoint.sh
@@ -21,9 +21,9 @@ function run_as() {
installed_version="0.0.0~unknown"
if [ -f /var/www/html/version.php ]; then
- installed_version=$(php -r 'require "/var/www/html/version.php"; echo "$OC_VersionString";')
+ installed_version=$(php -r 'require "/var/www/html/version.php"; echo implode(".", $OC_Version);')
fi
-image_version=$(php -r 'require "/usr/src/nextcloud/version.php"; echo "$OC_VersionString";')
+image_version=$(php -r 'require "/usr/src/nextcloud/version.php"; echo implode(".", $OC_Version);')
if version_greater "$installed_version" "$image_version"; then
echo "Can't start Nextcloud because the version of the data ($installed_version) is higher than the docker image version ($image_version) and downgrading is not supported. Are you sure you have pulled the newest image version?"