From 623d0644b5ec3816d7748d70b17f2ecb75bfae2b Mon Sep 17 00:00:00 2001 From: Hayden Date: Mon, 12 Feb 2024 10:11:53 -0800 Subject: [PATCH] i did jinx it, unterminated commands - should work now --- scripts/change_url | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/scripts/change_url b/scripts/change_url index 2c593f7..246227b 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -23,13 +23,13 @@ ynh_script_progression --message="Updating app configuration..." --weight=1 # this might be a roundabout way of doing it? if [ "$new_path" == "/" ] && [ "$old_path" == "/" ]; then - sed -i 's|$old_domain|$new_domain' $install_dir/config.php + sed -i 's|$old_domain|$new_domain|' $install_dir/config.php elif [ "$new_path" == "/" ] && [ "$old_path" != "/" ]; then - sed -i 's|$old_domain$old_path|$new_domain' + sed -i 's|$old_domain$old_path|$new_domain|' $install_dir/config.php elif [ "$new_path" != "/" ] && [ "$old_path" == "/" ]; then - sed -i 's|$old_domain|$new_domain$new_path' + sed -i 's|$old_domain|$new_domain$new_path|' $install_dir/config.php elif [ "$new_path" != "/" ] && [ "$old_path" != "/" ]; then - sed -i 's|$old_domain$old_path|$new_domain$new_path' $install_dir/config.php + sed -i 's|$old_domain$old_path|$new_domain$new_path|' $install_dir/config.php else ynh_print_warn --message="Didn't match a result for old/new paths. Attempting subdomain config." sed -i 's|$old_domain|$new_domain' $install_dir/config.php