mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
restore major version check
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
fb796debd6
commit
fe669a0be7
1 changed files with 12 additions and 0 deletions
|
|
@ -272,6 +272,18 @@ DATADIR_PERMISSION_CONF
|
||||||
fi
|
fi
|
||||||
# shellcheck disable=SC2016
|
# shellcheck disable=SC2016
|
||||||
installed_version="$(php -r 'require "/var/www/html/version.php"; echo implode(".", $OC_Version);')"
|
installed_version="$(php -r 'require "/var/www/html/version.php"; echo implode(".", $OC_Version);')"
|
||||||
|
INSTALLED_MAJOR="${installed_version%%.*}"
|
||||||
|
IMAGE_MAJOR="${image_version%%.*}"
|
||||||
|
if ! [ "$INSTALLED_MAJOR" -gt "$IMAGE_MAJOR" ]; then
|
||||||
|
php /var/www/html/updater/updater.phar --no-interaction --no-backup
|
||||||
|
if ! php /var/www/html/occ -V || php /var/www/html/occ status | grep maintenance | grep -q 'true'; then
|
||||||
|
echo "Installation of Nextcloud failed!"
|
||||||
|
touch "$NEXTCLOUD_DATA_DIR/install.failed"
|
||||||
|
exit 1
|
||||||
|
fi
|
||||||
|
# shellcheck disable=SC2016
|
||||||
|
installed_version="$(php -r 'require "/var/www/html/version.php"; echo implode(".", $OC_Version);')"
|
||||||
|
fi
|
||||||
php /var/www/html/occ app:disable updatenotification
|
php /var/www/html/occ app:disable updatenotification
|
||||||
rm -rf /var/www/html/apps/updatenotification
|
rm -rf /var/www/html/apps/updatenotification
|
||||||
php /var/www/html/occ app:enable nextcloud-aio --force
|
php /var/www/html/occ app:enable nextcloud-aio --force
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue