From 4fd449669b75f72335dcc00ad6e4451150c15908 Mon Sep 17 00:00:00 2001 From: DDATAA <45762540+Ddataa@users.noreply.github.com> Date: Thu, 9 Feb 2023 13:42:40 +0000 Subject: [PATCH] Update install --- scripts/install | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/scripts/install b/scripts/install index cf73eeb..ba54c9a 100644 --- a/scripts/install +++ b/scripts/install @@ -71,15 +71,15 @@ ynh_app_setting_set --app=$app --key=porti --value=$porti #================================================= # if the main domain for the app is a root domain, we create a correct sandbox subdomain -if [ $domain == *"."* ]; then +if [[ $domain == *"."* ]]; then sandboxdomain=sandbox.$domain fi # if the main domain for the app is already a sub-domain, we create a correct sandbox domain -if [ $domain == *"."*"."* ]; then +if [[ $domain == *"."*"."* ]]; then sandboxdomain=sandbox-$domain fi # if the main domain for the app is a .local root domain, we create a correct sandbox subdomain -if [ $domain == *".local" ]; then +if [[ $domain == *".local" ]]; then sandboxdomain=sandbox-$domain fi