From c09b0f4633dd84a5272578dc08429e1cb4f241b7 Mon Sep 17 00:00:00 2001 From: Robles Rodolphe Date: Thu, 9 Apr 2020 18:39:39 +0200 Subject: [PATCH] try to debug change_url script --- scripts/change_url | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index fb3ac16..dfbe5e8 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -68,11 +68,11 @@ then fi # change the config.local.conf -if [ $change_path -eq 1 ] && [ "$new_path" == "/" ] +if [ $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 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 + 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 # Change the domain for nginx