1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/open-web-calendar_ynh.git synced 2024-09-03 19:56:09 +02:00
open-web-calendar_ynh/scripts/change_url

32 lines
983 B
Text
Raw Permalink Normal View History

2024-02-08 22:38:16 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
ynh_script_progression "Stopping $app's systemd service..."
2024-02-08 22:38:16 +01:00
ynh_systemctl --service="$app" --action="stop" --log_path="systemd"
2024-02-08 22:38:16 +01:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression "Updating NGINX web server configuration..."
2024-02-08 22:38:16 +01:00
ynh_config_change_url_nginx
2024-02-08 22:38:16 +01:00
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression "Starting $app's systemd service..."
2024-02-08 22:38:16 +01:00
ynh_systemctl --service="$app" --action="start" --log_path="systemd"
2024-02-08 22:38:16 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression "Change of URL completed for $app"