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

add variable for default domain

This commit is contained in:
Nouts 2019-08-24 15:59:03 +02:00
parent b7b465e245
commit 0dd1b0a09c

View file

@ -26,6 +26,7 @@ synapse_db_name="matrix_$app"
synapse_db_user="matrix_$app"
upstream_version=$(ynh_app_upstream_version)
report_stats="False"
default_domain_value="Same than the domain"
#=================================================
# RETRIEVE ARGUMENTS FROM THE MANIFEST
@ -33,7 +34,7 @@ report_stats="False"
domain=$YNH_APP_ARG_DOMAIN
server_name=$YNH_APP_ARG_SERVER_NAME
if [ $server_name == "Same than the domain" ]; then
if [[ "$server_name" == "$default_domain_value" ]]; then
server_name=$domain
fi
is_public=$YNH_APP_ARG_IS_PUBLIC