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
|
if grep -q "FULLBLOG_DOMAIN_NAME" $CONFIGURATION_FILE; then
|
||||||
FULLBLOG_DOMAIN_NAME=$(grep "FULLBLOG_DOMAIN_NAME" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
FULLBLOG_DOMAIN_NAME=$(grep "FULLBLOG_DOMAIN_NAME" $CONFIGURATION_FILE | awk -F '=' '{print $2}')
|
||||||
fi
|
fi
|
||||||
if [ ! -d /var/www/$FULLBLOG_DOMAIN_NAME ]; then
|
|
||||||
rm -rf /var/www/$FULLBLOG_DOMAIN_NAME
|
|
||||||
fi
|
|
||||||
nginx_dissite $FULLBLOG_DOMAIN_NAME
|
nginx_dissite $FULLBLOG_DOMAIN_NAME
|
||||||
if [ ! -f /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME ]; then
|
if [ -f /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME ]; then
|
||||||
rm -rf /etc/nginx/sites-available/$FULLBLOG_DOMAIN_NAME
|
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
|
fi
|
||||||
if [ $FULLBLOG_CODE ]; then
|
if [ $FULLBLOG_CODE ]; then
|
||||||
if [ -f /usr/bin/dynamicdns ]; then
|
if [ -f /usr/bin/dynamicdns ]; then
|
||||||
|
|
Loading…
Reference in New Issue