1
0
Fork 0
mirror of https://github.com/YunoHost-Apps/rustdesk-server_ynh.git synced 2024-09-03 20:16:24 +02:00
rustdesk-server_ynh/scripts/change_url

44 lines
1.6 KiB
Text
Raw Normal View History

2023-10-29 16:23:32 +01:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Stopping a systemd service..." --weight=1
2023-10-29 19:22:23 +01:00
ynh_systemd_action --service_name=rustdesk-server --action="stop" --log_path="systemd"
ynh_systemd_action --service_name=rustdesk-hbbs --action="stop" --log_path="systemd"
2023-10-29 16:23:32 +01:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression --message="Updating NGINX web server configuration..." --weight=1
ynh_change_url_nginx_config
#=================================================
# GENERIC FINALISATION
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression --message="Starting a systemd service..." --weight=1
2023-10-29 19:22:23 +01:00
ynh_systemd_action --service_name=rustdesk-server --action="start" --log_path="systemd"
ynh_systemd_action --service_name=rustdesk-hbbs --action="start" --log_path="systemd"
2023-10-29 16:23:32 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Change of URL completed for $app" --last