1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/synapse-admin_ynh.git synced 2024-09-03 20:26:34 +02:00
synapse-admin_ynh/scripts/change_url

28 lines
973 B
Text
Raw Normal View History

2021-05-10 15:15:42 +02:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2024-01-07 20:58:17 +01:00
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
2021-05-10 15:15:42 +02:00
2024-01-07 20:58:17 +01:00
ynh_change_url_nginx_config
2021-05-10 15:15:42 +02:00
2024-01-07 20:58:17 +01:00
synapse_domain=$(ynh_app_setting_get --app=$synapse_app --key=domain)
synapse_port=$(ynh_app_setting_get --app=$synapse_app --key=synapse_port)
ynh_add_config --template="endpoint.nginx.conf" --destination="/etc/nginx/conf.d/${synapse_domain}.d/$app.endpoint.conf"
2021-05-10 15:15:42 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last