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:
parent
87f421089f
commit
764d4fa3fa
3 changed files with 3 additions and 0 deletions
|
@ -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
|
||||
|
|
|
@ -35,6 +35,7 @@ if [ -z "$access_domain" ]
|
|||
then
|
||||
access_domain=$domain
|
||||
fi
|
||||
access_domain=$(echo $access_domain | sed "s@;@ @g")
|
||||
mail="$app@$domain"
|
||||
|
||||
#=================================================
|
||||
|
|
|
@ -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)
|
||||
|
||||
|
|
Loading…
Reference in a new issue