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

43 lines
1.4 KiB
Text
Raw Normal View History

2019-01-29 21:56:56 +01:00
#!/bin/bash
#=================================================
# GENERIC STARTING
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
source _common.sh
source /usr/share/yunohost/helpers
#=================================================
# STANDARD MODIFICATIONS
2019-05-15 14:00:19 +02:00
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
2020-06-03 23:48:48 +02:00
ynh_script_progression --message="Stopping a systemd service..."
2019-05-15 14:00:19 +02:00
2023-08-04 20:20:28 +02:00
ynh_systemd_action --service_name=$app --action="stop" --log_path=systemd --line_match="Stopped"
2019-05-15 14:00:19 +02:00
2019-01-29 21:56:56 +01:00
#=================================================
# MODIFY URL IN NGINX CONF
#=================================================
2020-09-22 15:45:01 +02:00
ynh_script_progression --message="Updating NGINX web server configuration..."
2019-01-29 21:56:56 +01:00
2023-04-06 23:23:09 +02:00
ynh_change_url_nginx_config
2019-01-29 21:56:56 +01:00
#=================================================
# GENERIC FINALISATION
2019-05-15 14:00:19 +02:00
#=================================================
# START SYSTEMD SERVICE
#=================================================
2020-06-03 23:48:48 +02:00
ynh_script_progression --message="Starting a systemd service..."
2019-05-15 14:00:19 +02:00
2020-06-03 23:48:48 +02:00
# Start a systemd service
2021-05-13 22:15:02 +02:00
ynh_systemd_action --service_name=$app --action="start" --log_path=systemd --line_match="HTTP Server:"
2019-05-15 14:00:19 +02:00
2019-02-11 06:05:30 +01:00
#=================================================
# END OF SCRIPT
#=================================================
2020-06-03 23:48:48 +02:00
ynh_script_progression --message="Change of URL completed for $app"