diff --git a/scripts/change_url b/scripts/change_url index a53c0ac..027cc57 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -68,7 +68,7 @@ then if [ "$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" -else +elif 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 fi