From b03a0e7ff55463f538a9f9d52658f870fc9b3ca1 Mon Sep 17 00:00:00 2001 From: frju365 Date: Wed, 1 Feb 2017 19:57:02 +0100 Subject: [PATCH] Create remove --- scripts/remove | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 scripts/remove diff --git a/scripts/remove b/scripts/remove new file mode 100644 index 0000000..ca6e7f7 --- /dev/null +++ b/scripts/remove @@ -0,0 +1,13 @@ +#!/bin/bash + +app=$YNH_APP_INSTANCE_NAME +set -u +# Source app helpers +source /usr/share/yunohost/helpers + +domain=$(ynh_app_setting_set $app domain) + +sudo rm -rf /var/www/$app +sudo rm -f /etc/nginx/conf.d/$domain.d/$app.conf + +sudo service nginx reload