From 3b09ec9f12d0639592bb79a761501312ee144ed2 Mon Sep 17 00:00:00 2001 From: yalh76 Date: Fri, 1 Feb 2019 04:39:26 +0100 Subject: [PATCH] Add time for service to start --- scripts/change_url | 2 +- scripts/install | 2 +- scripts/restore | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index d7287ac..71588c7 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -100,7 +100,6 @@ ynh_replace_string "$old_domain" "$new_domain" "$final_path/$app/config/prod.sec # Start pleroma after modification yunohost service start $app -sleep 30 ### Verify the checksum of a file, stored by `ynh_store_file_checksum` in the install script. ### And create a backup of this file if the checksum is different. So the file will be backed up if the admin had modified it. @@ -117,3 +116,4 @@ ynh_store_file_checksum "$final_path/$app/config/prod.secret.exs" #================================================= systemctl reload nginx +sleep 30 diff --git a/scripts/install b/scripts/install index 27c0d67..932ae6c 100755 --- a/scripts/install +++ b/scripts/install @@ -402,4 +402,4 @@ systemctl reload nginx #================================================= yunohost service start $app -sleep 10 +sleep 30 diff --git a/scripts/restore b/scripts/restore index 3886ffd..b3c412c 100755 --- a/scripts/restore +++ b/scripts/restore @@ -158,4 +158,4 @@ systemctl reload nginx #================================================= yunohost service start $app -sleep 10 +sleep 30