reverseproxy_ynh/scripts/remove

24 lines
582 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
#=================================================
source /usr/share/yunohost/helpers
#=================================================
# LOAD SETTINGS
#=================================================
2016-06-20 23:43:51 +02:00
# Retrieve arguments
2019-05-15 18:42:44 +02:00
app=$YNH_APP_INSTANCE_NAME
domain=$(ynh_app_setting_get $app domain)
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
# Restart services
2019-05-15 18:42:44 +02:00
systemctl reload nginx