diff --git a/bin/wp-create-db-user-from-config.sh b/bin/wp-create-db-user-from-config.sh index d2bfa92..fd8b958 100755 --- a/bin/wp-create-db-user-from-config.sh +++ b/bin/wp-create-db-user-from-config.sh @@ -19,7 +19,7 @@ if [ ! -f /srv/www/$VHOST/html/wp-config.php ]; then fi # set username -VHOST_USER=$(stat -c '%U' /srv/$VHOST) +VHOST_USER=$(stat -c '%U' /srv/www/$VHOST) cd /srv/www/$VHOST/html/ DB_NAME=`wp --allow-root config get DB_NAME`