2020-05-10 11:02:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2020-08-13 18:30:30 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=3
|
2020-05-10 11:02:05 +02:00
|
|
|
|
2023-02-22 16:35:00 +01:00
|
|
|
ynh_change_url_nginx_config
|
2020-05-10 11:02:05 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# RELOAD NGINX
|
|
|
|
#=================================================
|
2020-08-13 18:30:30 +02:00
|
|
|
ynh_script_progression --message="Reloading NGINX web server..." --weight=2
|
2020-05-10 11:02:05 +02:00
|
|
|
|
|
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|