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

42 lines
1.3 KiB
Text
Raw Permalink Normal View History

2019-05-20 15:17:36 +02:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2021-03-26 22:25:19 +01:00
source _common.sh
2019-05-20 15:17:36 +02:00
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
2022-06-29 03:45:27 +02:00
ynh_script_progression --message="Stopping a systemd service..." --weight=1
2019-05-20 15:17:36 +02:00
2022-06-29 03:45:27 +02:00
ynh_systemd_action --service_name=$app --action="stop"
2019-05-20 15:17:36 +02:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2022-06-29 03:45:27 +02:00
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2
2019-05-20 15:17:36 +02:00
2023-06-04 21:04:12 +02:00
ynh_change_url_nginx_config
2019-05-20 15:17:36 +02:00
#=================================================
# GENERIC FINALISATION
#=================================================
# START SYSTEMD SERVICE
#=================================================
2022-06-29 03:45:27 +02:00
ynh_script_progression --message="Starting a systemd service..." --weight=2
2019-05-20 15:17:36 +02:00
2022-06-29 03:45:27 +02:00
ynh_systemd_action --service_name=$app --action="start"
2019-05-20 15:17:36 +02:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last