2022-04-21 18:30:00 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2022-04-23 09:10:45 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
2022-04-21 18:30:00 +02:00
|
|
|
|
2023-02-21 18:18:38 +01:00
|
|
|
ynh_change_url_nginx_config
|
2022-04-21 18:30:00 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# RELOAD NGINX
|
|
|
|
#=================================================
|
2022-04-23 09:10:45 +02:00
|
|
|
ynh_script_progression --message="Reloading NGINX web server..." --weight=1
|
2022-04-21 18:30:00 +02:00
|
|
|
|
|
|
|
ynh_systemd_action --service_name=nginx --action=reload
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2022-04-23 09:10:45 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|