Browse Source

Merge pull request #157 from YunoHost-Apps/fix_maintenance_user

Maintenance operations: fix user for multi-instance and apply at installation
pull/160/head
JimboJoe 7 years ago
committed by GitHub
parent
commit
890397cadb
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      scripts/install
  2. 2
      scripts/upgrade.d/upgrade.last.sh

5
scripts/install

@ -236,6 +236,11 @@ ynh_replace_string "#DESTDIR#" "$final_path" "$cron_path"
exec_occ background:cron
#=================================================
# POST-INSTALL MAINTENANCE
#=================================================
(cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u $app php occ db:add-missing-indices ; sudo -u $app php occ db:convert-filecache-bigint -n) > /tmp/${app}_maintenance.log")
#=================================================
# CONFIGURE THE HOOK FILE FOR USER CREATE
#=================================================

2
scripts/upgrade.d/upgrade.last.sh

@ -12,5 +12,5 @@ last_upgrade_operations () {
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 $app php occ db:add-missing-indices ; sudo -u $app php occ db:convert-filecache-bigint -n) > /tmp/nextcloud_maintenance.log")
(cd /tmp ; at now + 10 minutes <<< "(cd $final_path ; sudo -u $app php occ db:add-missing-indices ; sudo -u $app php occ db:convert-filecache-bigint -n) > /tmp/${app}_maintenance.log")
}
Loading…
Cancel
Save