1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/nextcloud_ynh.git synced 2024-09-03 19:55:57 +02:00

Revert "Limit upgrade operations (patches, maintenance, etc.) to the last upgrade"

This reverts commit a9bb825abb.
This commit is contained in:
Mickaël Martin 2019-02-21 18:24:14 +01:00
parent 1cacbbe7e6
commit eeae1b9243
2 changed files with 4 additions and 9 deletions

View file

@ -176,8 +176,6 @@ do
# then it's the last upgrade to do # then it's the last upgrade to do
if [ "$major_version" -eq "$current_major_version" ]; then if [ "$major_version" -eq "$current_major_version" ]; then
current_major_version=last current_major_version=last
# Execute the commands dedicated to the last upgrade
last_upgrade_operations
fi fi
# Load the value for this version # Load the value for this version

View file

@ -6,11 +6,8 @@ next_version="15.0.0"
# Nextcloud tarball checksum sha256 # Nextcloud tarball checksum sha256
nextcloud_source_sha256="5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78" nextcloud_source_sha256="5bb0c58171353da844019b64080c21078002a59ab956ab72adb958844a98eb78"
# This function will only be executed upon applying the last upgrade referenced above # Patch nextcloud files only for the last version
last_upgrade_operations () { cp -a ../sources/patches_last_version/* ../sources/patches
# Patch nextcloud files only for the last version
cp -a ../sources/patches_last_version/* ../sources/patches
# Execute post-upgrade operations later on # Execute post-upgrade operations later on
(cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u nextcloud php occ db:add-missing-indices ; sudo -u nextcloud php occ db:convert-filecache-bigint -n) > /tmp/nextcloud_maintenance.log") (cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u nextcloud php occ db:add-missing-indices ; sudo -u nextcloud php occ db:convert-filecache-bigint -n) > /tmp/nextcloud_maintenance.log")
}