From 4ec2047888ebb2a46752953f216fbe6cdc3fd58e Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Wed, 21 Oct 2020 19:27:31 +0200 Subject: [PATCH] fix --- scripts/change_url | 6 +++--- scripts/upgrade | 1 + 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 5fc4a55..09eab2e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -68,14 +68,14 @@ fi #================================================= # STOP SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Stopping a systemd service..." --time --weight=1 +ynh_script_progression --message="Stopping a systemd service..." --weight=3 ynh_systemd_action --service_name=$app --action="stop" --log_path="/var/log/$app/$app.log" #================================================= # MODIFY URL IN NGINX CONF #================================================= -ynh_script_progression --message="Updating NGINX web server configuration..." --time --weight=1 +ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2 nginx_conf_path=/etc/nginx/conf.d/$old_domain.d/$app.conf @@ -106,7 +106,7 @@ fi #================================================= # START SYSTEMD SERVICE #================================================= -ynh_script_progression --message="Starting a systemd service..." --time --weight=1 +ynh_script_progression --message="Starting a systemd service..." --weight=10 ynh_systemd_action --service_name=$app --action="start" --log_path="/var/log/$app/$app.log" --line_match="Your Etherpad version is" --timeout="120" diff --git a/scripts/upgrade b/scripts/upgrade index 37c381d..a7eff5a 100644 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -31,6 +31,7 @@ password=$(ynh_app_setting_get --app=$app --key=password) #================================================= # CHECK VERSION #================================================= +ynh_script_progression --message="Checking version..." --weight=1 upgrade_type=$(ynh_check_app_version_changed)