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
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
6 additions and
1 deletions
-
scripts/install
-
scripts/upgrade.d/upgrade.last.sh
|
|
|
@ -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 |
|
|
|
#================================================= |
|
|
|
|
|
|
|
@ -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") |
|
|
|
} |