Merge branch 'master' of git.stack-source.com:msb/wordpress-tools
This commit is contained in:
commit
2240487a9a
|
@ -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
|
||||
|
@ -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`
|
||||
|
|
Loading…
Reference in New Issue
Block a user