reverseproxy_ynh/scripts/remove

36 lines
988 B
Text
Raw Normal View History

2016-06-20 23:43:51 +02:00
#!/bin/bash
2018-05-26 10:27:01 +02:00
#=================================================
# GENERIC START
#=================================================
# IMPORT GENERIC HELPERS
#=================================================
2023-01-08 14:33:31 +01:00
source _common.sh
2018-05-26 10:27:01 +02:00
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
2021-01-23 15:21:17 +01:00
ynh_script_progression --message="Loading installation settings..." --weight=1
2016-06-20 23:43:51 +02:00
# Retrieve arguments
2019-05-15 18:42:44 +02:00
app=$YNH_APP_INSTANCE_NAME
2021-01-23 15:21:17 +01:00
domain=$(ynh_app_setting_get --app=$app --key=domain)
#=================================================
# REVERSEPROXY_YNH
2021-01-23 15:21:17 +01:00
#=================================================
2016-06-20 23:43:51 +02:00
# Remove configuration files
ynh_secure_remove /etc/nginx/conf.d/$domain.d/$app.conf
2016-06-20 23:43:51 +02:00
2023-01-08 14:33:31 +01:00
# Reload nginx
rp_reload_web
2021-01-23 15:21:17 +01:00
#=================================================
# END OF SCRIPT
#=================================================
ynh_script_progression --message="Removal of $app completed" --last