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:
parent
cf450e5d14
commit
d104e1cba0
5 changed files with 112 additions and 59 deletions
|
@ -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?"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue