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

32 lines
984 B
Text
Raw Permalink Normal View History

2021-02-16 13:38:59 +01:00
#!/bin/bash
2021-02-16 14:17:45 +01:00
source _common.sh
2021-02-16 13:38:59 +01:00
source /usr/share/yunohost/helpers
2021-02-16 14:17:45 +01:00
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
2024-06-23 09:23:13 +02:00
ynh_script_progression "Stopping $app's systemd service..."
2021-02-16 14:17:45 +01:00
2024-06-23 09:23:13 +02:00
ynh_systemctl --service=$app --action="stop"
2021-02-16 14:17:45 +01:00
2021-02-16 13:38:59 +01:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2024-06-23 09:23:13 +02:00
ynh_script_progression "Updating NGINX web server configuration..."
2021-02-16 13:38:59 +01:00
2024-06-23 09:23:13 +02:00
ynh_config_change_url_nginx
2023-03-12 22:15:34 +01:00
2021-02-16 14:17:45 +01:00
#=================================================
# START SYSTEMD SERVICE
#=================================================
2024-06-23 09:23:13 +02:00
ynh_script_progression "Starting $app's systemd service..."
2021-02-16 14:17:45 +01:00
2024-06-23 09:23:13 +02:00
ynh_systemctl --service=$app --action="start" --log_path="systemd" --wait_until="Serving on"
2021-02-16 14:17:45 +01:00
2021-02-16 13:38:59 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2024-06-23 09:23:13 +02:00
ynh_script_progression "Change of URL completed for $app"