0
0
Fork 0
mirror of https://github.com/nextcloud/docker.git synced 2025-06-10 05:44:47 +02:00

Add images for Release Candidates

This commit is contained in:
Tilo Spannagel 2018-03-13 10:58:19 +01:00
parent cf450e5d14
commit d104e1cba0
No known key found for this signature in database
GPG key ID: B89F1626A58E1429
5 changed files with 112 additions and 59 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?"