From cfcdc14a9191a8a3d998e985a83b145efe87bf1e Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Fri, 30 Sep 2016 20:19:24 +0100 Subject: [PATCH] Reverse logic --- src/freedombone-app-blog | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/freedombone-app-blog b/src/freedombone-app-blog index f304f948..c7498430 100755 --- a/src/freedombone-app-blog +++ b/src/freedombone-app-blog @@ -317,12 +317,12 @@ function remove_blog { if grep -q "FULLBLOG_DOMAIN_NAME" $CONFIGURATION_FILE; then FULLBLOG_DOMAIN_NAME=$(grep "FULLBLOG_DOMAIN_NAME" $CONFIGURATION_FILE | awk -F '=' '{print $2}') fi - if [ ! -d /var/www/$FULLBLOG_DOMAIN_NAME ]; then - rm -rf /var/www/$FULLBLOG_DOMAIN_NAME - fi nginx_dissite $FULLBLOG_DOMAIN_NAME - if [ ! -f /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME ]; then - rm -rf /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME + if [ -f /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME ]; then + rm -f /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME + fi + if [ -d /var/www/$FULLBLOG_DOMAIN_NAME ]; then + rm -rf /var/www/$FULLBLOG_DOMAIN_NAME fi if [ $FULLBLOG_CODE ]; then if [ -f /usr/bin/dynamicdns ]; then