From fce9193244d714ebe331e5cddd3237bb9661aeca Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Thu, 9 Apr 2020 18:09:00 +0200 Subject: [PATCH] try to debug change_url script --- scripts/change_url | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index b3c5e9c..0d89903 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -70,10 +70,7 @@ fi if [ $change_path -eq 1 ] && [ "$new_path" == "/" ] then ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path';" --target_file="$final_path/config.local.php" -fi - -if [ $change_path -eq 1 ] && [ "$new_path" != "/" ] -then +else ynh_replace_string --match_string="const WWW_URI = '$old_path/';" --replace_string="const WWW_URI = '$new_path/';" --target_file="$final_path/config.local.php" fi