From ce4849e82b8718f609debfb671e9d9f4bc1b3040 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Fri, 10 Apr 2020 15:32:15 +0200 Subject: [PATCH] sripts modified, try to resolve change url --- scripts/change_url | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index efbd34e..e7b454e 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -80,8 +80,9 @@ 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" elif [ "$old_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" -elif [ "$new_path" != "/" -o "$old_path" != "/" ] +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