From 54c854bc6c0e255878a031df807eb4f83e026164 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Micka=C3=ABl=20Martin?= Date: Thu, 21 Feb 2019 18:24:14 +0100 Subject: [PATCH] Revert "Maintenance operations: fix user for multi-instance and apply at installation" This reverts commit b2ec1be4b99be12a56a9d5cffdb4dbe1bc250a42. --- scripts/install | 5 ----- scripts/upgrade.d/upgrade.last.sh | 2 +- 2 files changed, 1 insertion(+), 6 deletions(-) diff --git a/scripts/install b/scripts/install index 3267ad9..2df5093 100755 --- a/scripts/install +++ b/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 #================================================= diff --git a/scripts/upgrade.d/upgrade.last.sh b/scripts/upgrade.d/upgrade.last.sh index 0d0d7a2..e061d31 100755 --- a/scripts/upgrade.d/upgrade.last.sh +++ b/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") }