1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/snserver_ynh.git synced 2024-09-03 20:26:22 +02:00

Fix issue when more than one access_domain is defined.

This commit is contained in:
Fabian Wilkens 2021-05-04 20:37:10 +02:00
parent 87f421089f
commit 764d4fa3fa
No known key found for this signature in database
GPG key ID: 23DFA025BB4E9FAB
3 changed files with 3 additions and 0 deletions

View file

@ -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

View file

@ -35,6 +35,7 @@ if [ -z "$access_domain" ]
then
access_domain=$domain
fi
access_domain=$(echo $access_domain | sed "s@;@ @g")
mail="$app@$domain"
#=================================================

View file

@ -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)