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