From da7dfd3172da8eb56af1fccee85f0a4bae732d8b Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Fri, 10 Apr 2020 15:43:57 +0200 Subject: [PATCH] sripts modified, try to resolve change url --- scripts/change_url | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index e7b454e..93fd82a 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -79,10 +79,10 @@ 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" -elif [ "$old_path" == "/" ] +elif [ $change_path -eq 1 ] && [ "$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" -else +else [ $change_path -eq 1 ] 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