2020-05-10 11:02:05 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-08-31 14:56:04 +02:00
|
|
|
ynh_script_progression "Updating NGINX web server configuration..."
|
2020-05-10 11:02:05 +02:00
|
|
|
|
2024-08-31 14:56:04 +02:00
|
|
|
ynh_config_change_url_nginx
|
2020-05-10 11:02:05 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# RELOAD NGINX
|
|
|
|
#=================================================
|
2024-08-31 14:56:04 +02:00
|
|
|
ynh_script_progression "Reloading NGINX web server..."
|
2020-05-10 11:02:05 +02:00
|
|
|
|
2024-08-31 14:56:04 +02:00
|
|
|
ynh_systemctl --service=nginx --action=reload
|
2020-05-10 11:02:05 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-31 14:56:04 +02:00
|
|
|
ynh_script_progression "Change of URL completed for $app"
|