2019-01-29 21:56:56 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
2019-05-15 14:00:19 +02:00
|
|
|
#=================================================
|
|
|
|
# STOP SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_script_progression "Stopping $app's systemd service..."
|
2019-05-15 14:00:19 +02:00
|
|
|
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_systemctl --service=$app --action="stop" --log_path=systemd
|
2019-05-15 14:00:19 +02:00
|
|
|
|
2019-01-29 21:56:56 +01:00
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_script_progression "Updating NGINX web server configuration..."
|
2019-01-29 21:56:56 +01:00
|
|
|
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_config_change_url_nginx
|
2019-01-29 21:56:56 +01:00
|
|
|
|
2019-05-15 14:00:19 +02:00
|
|
|
#=================================================
|
|
|
|
# START SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_script_progression "Starting $app's systemd service..."
|
2019-05-15 14:00:19 +02:00
|
|
|
|
2020-06-03 23:48:48 +02:00
|
|
|
# Start a systemd service
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_systemctl --service="$app" --action="start" --log_path=systemd --wait_until="HTTP Server:"
|
2019-05-15 14:00:19 +02:00
|
|
|
|
2019-02-11 06:05:30 +01:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2024-08-31 03:55:56 +02:00
|
|
|
ynh_script_progression "Change of URL completed for $app"
|