2020-10-20 13:46:23 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# GENERIC STARTING
|
|
|
|
#=================================================
|
|
|
|
# IMPORT GENERIC HELPERS
|
|
|
|
#=================================================
|
|
|
|
|
|
|
|
source _common.sh
|
|
|
|
source /usr/share/yunohost/helpers
|
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# STANDARD MODIFICATIONS
|
|
|
|
#=================================================
|
|
|
|
# STOP SYSTEMD SERVICE
|
|
|
|
#=================================================
|
2020-11-02 21:32:40 +01:00
|
|
|
ynh_script_progression --message="Stopping a systemd service..." --weight=2
|
2020-10-20 13:46:23 +02:00
|
|
|
|
2021-02-26 09:06:40 +01:00
|
|
|
ynh_systemd_action --service_name=$app --action=stop --log_path=systemd
|
2020-10-20 13:46:23 +02:00
|
|
|
|
|
|
|
#=================================================
|
|
|
|
# MODIFY URL IN NGINX CONF
|
|
|
|
#=================================================
|
2020-11-02 21:32:40 +01:00
|
|
|
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=2
|
2020-10-20 13:46:23 +02:00
|
|
|
|
2023-06-27 09:46:08 +02:00
|
|
|
ynh_change_url_nginx_config
|
|
|
|
|
2020-12-04 23:47:46 +01:00
|
|
|
#=================================================
|
|
|
|
# START SYSTEMD SERVICE
|
|
|
|
#=================================================
|
|
|
|
ynh_script_progression --message="Starting a systemd service..." --weight=6
|
|
|
|
|
|
|
|
# Start a systemd service
|
2020-12-23 13:31:51 +01:00
|
|
|
ynh_systemd_action --service_name=$app --action=restart --log_path=systemd --line_match="Your Etherpad version is"
|
2020-12-04 23:47:46 +01:00
|
|
|
|
2020-10-20 13:46:23 +02:00
|
|
|
#=================================================
|
|
|
|
# END OF SCRIPT
|
|
|
|
#=================================================
|
|
|
|
|
2023-09-09 09:03:21 +02:00
|
|
|
ynh_script_progression --message="Change of URL completed for $app" --last
|