2022-03-12 16:55:59 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# STOP SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2022-05-02 19:22:58 +02:00
|
|
|
ynh_script_progression --message="Stopping a systemd service…"
|
2022-03-12 16:55:59 +01:00
|
|
|
|
|
|
|
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2022-05-02 19:22:58 +02:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration…"
|
2022-03-12 16:55:59 +01:00
|
|
|
|
2024-02-21 14:59:14 +01:00
|
|
|
ynh_change_url_nginx_config
|
2022-03-12 16:55:59 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC FINALISATION
|
|
|
|
#=================================================
|
|
|
|
# START SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2022-05-02 19:22:58 +02:00
|
|
|
ynh_script_progression --message="Starting a systemd service…"
|
2022-03-12 16:55:59 +01:00
|
|
|
|
|
|
|
# Start a systemd service
|
2024-02-23 16:32:45 +01:00
|
|
|
ynh_systemd_action --service_name="$app" --action="start" --log_path=systemd --line_match="Web administration accessible"
|
2022-03-12 16:55:59 +01:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
ynh_script_progression --message="Change of URL completed for $app"
|