From 03e4c5ffc0aab1806edd04c5e0fe513596eea45a Mon Sep 17 00:00:00 2001 From: ericgaspar Date: Sun, 26 Sep 2021 08:34:00 +0200 Subject: [PATCH] Update change_url --- scripts/change_url | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/change_url b/scripts/change_url index 54fb322..594268b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -88,7 +88,7 @@ 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 [ $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" -elif [ $change_path -eq 1 ] +elif [ $change_path -eq 1 ]; 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