0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-04-25 04:40:55 +02:00

Run update.sh

This commit is contained in:
Tilo Spannagel 2018-03-13 11:16:01 +01:00
parent d104e1cba0
commit a3250b89d1
No known key found for this signature in database
GPG key ID: B89F1626A58E1429
67 changed files with 2185 additions and 19 deletions

View file

@ -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?"