From 764d4fa3fa8d873080d8454003de0b88b387ac63 Mon Sep 17 00:00:00 2001 From: Fabian Wilkens Date: Tue, 4 May 2021 20:37:10 +0200 Subject: [PATCH] Fix issue when more than one access_domain is defined. --- scripts/change_url | 1 + scripts/install | 1 + scripts/upgrade | 1 + 3 files changed, 3 insertions(+) diff --git a/scripts/change_url b/scripts/change_url index 2bb06bf..5aad8f4 100644 --- a/scripts/change_url +++ b/scripts/change_url @@ -31,6 +31,7 @@ ynh_script_progression --message="Loading installation settings..." --weight=1 final_path=$(ynh_app_setting_get --app=$app --key=final_path) port=$(ynh_app_setting_get --app=$app --key=port) access_domain=$(ynh_app_setting_get --app=$app --key=access_domain) +access_domain=$(echo $access_domain | sed "s@;@ @g") mail=$(ynh_app_setting_get --app=$app --key=mail) # Add settings here as needed by your application diff --git a/scripts/install b/scripts/install index 3d4c995..ab66bb0 100755 --- a/scripts/install +++ b/scripts/install @@ -35,6 +35,7 @@ if [ -z "$access_domain" ] then access_domain=$domain fi +access_domain=$(echo $access_domain | sed "s@;@ @g") mail="$app@$domain" #================================================= diff --git a/scripts/upgrade b/scripts/upgrade index 57f3396..bffd043 100755 --- a/scripts/upgrade +++ b/scripts/upgrade @@ -27,6 +27,7 @@ db_user=$db_name db_pwd=$(ynh_app_setting_get --app=$app --key=mysqlpwd) port=$(ynh_app_setting_get --app=$app --key=port) access_domain=$(ynh_app_setting_get --app=$app --key=access_domain) +access_domain=$(echo $access_domain | sed "s@;@ @g") mail=$(ynh_app_setting_get --app=$app --key=mail) redis_db=$(ynh_app_setting_get --app=$app --key=redis_db)