2013-12-24 13:37:55 +01:00
|
|
|
#!/bin/bash
|
|
|
|
|
2017-04-16 17:22:30 +02:00
|
|
|
# Exit on command errors and treat unset variables as an error
|
|
|
|
set -u
|
|
|
|
|
|
|
|
# Source app helpers
|
|
|
|
source /usr/share/yunohost/helpers
|
2017-04-16 22:17:13 +02:00
|
|
|
source ./_common
|
2017-04-16 17:22:30 +02:00
|
|
|
|
|
|
|
# Get multi-instances specific variables
|
2016-08-24 19:51:23 +02:00
|
|
|
app=$YNH_APP_INSTANCE_NAME
|
2013-12-24 13:37:55 +01:00
|
|
|
|
2017-04-16 17:22:30 +02:00
|
|
|
# Retrieve arguments
|
|
|
|
domain=$(ynh_app_setting_get "$app" domain)
|
2016-08-24 19:51:23 +02:00
|
|
|
|
2017-04-16 22:17:13 +02:00
|
|
|
ynh_secure_rm /var/www/$app
|
|
|
|
ynh_secure_rm /etc/nginx/conf.d/$domain.d/$app.conf
|
2016-11-21 16:03:27 +01:00
|
|
|
|
2017-04-16 17:22:30 +02:00
|
|
|
sudo systemctl reload nginx
|