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
|
2019-04-29 20:49:40 +02:00
|
|
|
domain=$(ynh_app_setting_get $app domain)
|
2016-06-20 23:43:51 +02:00
|
|
|
|
|
|
|
# Remove configuration files
|
2019-04-29 20:49:40 +02:00
|
|
|
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
|