From 3f229faf49fcfa1eccf1ba1ffa055c26604f4ab8 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 14 Apr 2021 18:45:13 -0700 Subject: [PATCH 1/2] Update 'bin/wp-create-db-user-from-config.sh' --- bin/wp-create-db-user-from-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wp-create-db-user-from-config.sh b/bin/wp-create-db-user-from-config.sh index e99a754..4eae3ff 100755 --- a/bin/wp-create-db-user-from-config.sh +++ b/bin/wp-create-db-user-from-config.sh @@ -20,7 +20,7 @@ fi # set username VHOST_USER=$(stat -c '%U' /srv/$VHOST) -cd /srv/$VHOST/html/ +cd /srv/www/$VHOST/html/ DB_NAME=`wp --allow-root config get DB_NAME` DB_USER=`wp --allow-root config get DB_USER` DB_PASSWORD=`wp --allow-root config get DB_PASSWORD` From 20891b07d08aa8b593c0dd4da1246f6f5c440835 Mon Sep 17 00:00:00 2001 From: Matthew Saunders Brown Date: Wed, 14 Apr 2021 18:45:57 -0700 Subject: [PATCH 2/2] Update 'bin/wp-create-db-user-from-config.sh' --- bin/wp-create-db-user-from-config.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/wp-create-db-user-from-config.sh b/bin/wp-create-db-user-from-config.sh index 4eae3ff..d846f57 100755 --- a/bin/wp-create-db-user-from-config.sh +++ b/bin/wp-create-db-user-from-config.sh @@ -12,7 +12,7 @@ fi VHOST=$1 -if [ ! -f /srv/$VHOST/html/wp-config.php ]; then +if [ ! -f /srv/www/$VHOST/html/wp-config.php ]; then echo "Config file /srv/$VHOST/html/wp-config.php does not exist." exit fi