Reverse logic

This commit is contained in:
Bob Mottram 2016-09-30 20:19:24 +01:00
parent b429512415
commit cfcdc14a91
1 changed files with 5 additions and 5 deletions

View File

@ -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