Browse Source

Revert "Maintenance operations: fix user for multi-instance and apply at installation"

This reverts commit b2ec1be4b9.
pull/162/head
Mickaël Martin 7 years ago
parent
commit
54c854bc6c
  1. 5
      scripts/install
  2. 2
      scripts/upgrade.d/upgrade.last.sh

5
scripts/install

@ -241,11 +241,6 @@ 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/nextcloud_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 nextcloud php occ db:add-missing-indices ; sudo -u nextcloud php occ db:convert-filecache-bigint -n) > /tmp/nextcloud_maintenance.log")
}
Loading…
Cancel
Save