mirror of
https://github.com/nextcloud/docker.git
synced 2025-04-25 21:00:53 +02:00
Run update.sh
This commit is contained in:
parent
d104e1cba0
commit
a3250b89d1
67 changed files with 2185 additions and 19 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?"
|
||||
|
|
|
@ -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?"
|
||||
|
|
|
@ -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