Reverse logic
This commit is contained in:
parent
b429512415
commit
cfcdc14a91
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue