yunohost-gitea_ynh/scripts/change_url

42 lines
1.3 KiB
Plaintext
Raw Permalink Normal View History

2018-02-25 21:45:24 +01:00
#!/bin/bash
source _common.sh
source /usr/share/yunohost/helpers
2018-02-25 21:45:24 +01:00
#=================================================
# STOP SYSTEMD SERVICE
#=================================================
ynh_script_progression "Stopping $app's systemd service..."
2018-02-25 21:45:24 +01:00
ynh_systemctl --service="$app" --action=stop
2019-09-10 22:43:45 +02:00
#=================================================
2018-02-25 21:45:24 +01:00
# MODIFY URL IN NGINX CONF
#=================================================
ynh_script_progression "Updating NGINX web server configuration..."
2018-02-25 21:45:24 +01:00
ynh_config_change_url_nginx
2018-02-25 21:45:24 +01:00
#=================================================
# SPECIFIC MODIFICATIONS
#=================================================
# Setup gitea.ini
#=================================================
ynh_script_progression "Updating gitea configuration..."
2018-02-25 21:45:24 +01:00
ynh_config_add --template="app.ini" --destination="$install_dir/custom/conf/app.ini"
2023-11-29 10:58:11 +01:00
_set_permissions
#=================================================
# START SYSTEMD SERVICE
#=================================================
ynh_script_progression "Starting gitea services..."
ynh_systemctl --service="$app" --action=start --log_path="/var/log/$app/gitea.log" --wait_until="$systemd_match_start_line"
#=================================================
# END OF SCRIPT
#=================================================
2019-10-27 14:54:35 +01:00
ynh_script_progression "Change of URL completed for $app"