Please, guys, just a couple of users are having this issue and none of you want to debug it.
This is the functions we use to determine if a site is WP or not:
is_wp() {
# $1 = domain, $2 = WP subfolder
if [[ -z $2 && -a /etc/nginx/sites-available/$1 && -n $(sed -n -e '/WebinolyNginxServerStart/,$p' /etc/nginx/sites-available/$1 | grep -F "wpcommon") ]]; then
echo "true"
elif [[ -n $2 && -a /etc/nginx/sites-available/$1 && -a /etc/nginx/apps.d/$1$subname-wpcommon.conf && -a /var/www/$1/htdocs$2/wp-config.php ]]; then
echo "true"
else
echo "false"
fi
}
You tell me, what's wrong?