2022-02-05 12:03:12 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STOP SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2024-03-02 08:52:38 +01:00
|
|
|
ynh_script_progression --message="Stopping a systemd service..." --weight=1
|
2022-02-05 12:03:12 +01:00
|
|
|
|
|
|
|
ynh_systemd_action --service_name=$app --action="stop" --log_path="systemd"
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-03-02 08:52:38 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
|
2022-02-05 12:03:12 +01:00
|
|
|
|
2023-04-03 10:21:12 +02:00
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2022-02-05 12:03:12 +01:00
|
|
|
#=================================================
|
|
|
|
# START SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2024-06-02 22:32:49 +02:00
|
|
|
ynh_script_progression --message="Starting $app's systemd service..." --weight=1
|
2022-02-05 12:03:12 +01:00
|
|
|
|
2022-07-19 01:49:58 +02:00
|
|
|
ynh_systemd_action --service_name=$app --action="start" --log_path="systemd" --line_match="Using config"
|
2022-02-05 12:03:12 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-03-02 08:52:38 +01:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|