diff --git a/scripts/change_url b/scripts/change_url index e81bca0..ce2841f 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -104,7 +104,7 @@ ynh_systemd_action --action=stop --service_name=$app # Change the URL in the configuration file -if [ "$new_path" = "/" ] +if [ "$new_path" == "/" ] then new_domain_uri="$new_domain$new_path" else diff --git a/scripts/install b/scripts/install index e5210b7..9eca9b9 100644 --- a/scripts/install +++ b/scripts/install @@ -196,7 +196,7 @@ ynh_add_systemd_config ### (It's compatible with sed regular expressions syntax) cp "../conf/.env" "$final_path/.env" -if [ "$path_url" = "/" ] +if [ "$path_url" == "/" ] then domain_uri="$domain" else