From 55b312fd29579d03239f2c066408c484563ac7bd Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Tue, 17 Aug 2021 19:25:14 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 6d19d3f..b61cbf3 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -99,7 +99,7 @@ then fi #================================================= -# ADD A CONFIGURATION +# UPGRADE A CONFIGURATION #================================================= ynh_script_progression --message="Updating a configuration file..." --weight=1 @@ -107,6 +107,13 @@ domain=$new_domain path_url=$new_path ynh_replace_string --match_string="wwwroot = '.*';" --replace_string="wwwroot = 'https://${domain}${path_url%/}';" --target_file="$final_path/config.php" +#================================================= +# RELOAD NGINX +#================================================= +ynh_script_progression --message="Reloading NGINX web server..." --weight=1 + +ynh_systemd_action --service_name=nginx --action=reload + #================================================= # END OF SCRIPT #=================================================