Browse Source
Merge pull request #149 from YunoHost-Apps/enh_upgrade_maintenance
Plan required maintenance operations after upgrade
pull/156/head
JimboJoe
7 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
4 additions and
1 deletions
-
scripts/_common.sh
-
scripts/upgrade.d/upgrade.last.sh
|
|
|
@ -3,7 +3,7 @@ |
|
|
|
# COMMON VARIABLES |
|
|
|
#================================================= |
|
|
|
|
|
|
|
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient" |
|
|
|
pkg_dependencies="php5-gd php5-json php5-intl php5-mcrypt php5-curl php5-apcu php5-redis php5-ldap php5-imagick imagemagick acl tar smbclient at" |
|
|
|
|
|
|
|
if [ "$(lsb_release --codename --short)" != "jessie" ]; then |
|
|
|
pkg_dependencies="$pkg_dependencies php-zip php-apcu php-mbstring php-xml" |
|
|
|
|
|
|
|
@ -8,3 +8,6 @@ nextcloud_source_sha256="4f5dd15a71694bd2f15fba0d2f942e5a5b1f5aba13511c507a23324 |
|
|
|
|
|
|
|
# Patch nextcloud files only for the last version |
|
|
|
cp -a ../sources/patches_last_version/* ../sources/patches |
|
|
|
|
|
|
|
# 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") |