mirror of
https://github.com/myvesta/vesta
synced 2025-08-21 05:44:08 -07:00
Update v-add-wordpress-admin
This commit is contained in:
parent
abc2377dad
commit
e51cd34f77
1 changed files with 5 additions and 1 deletions
|
@ -53,7 +53,11 @@ if [ ! -d "/home/$user/web/$domain/public_html" ]; then
|
|||
exit 1;
|
||||
fi
|
||||
|
||||
# Check if WP CLI is installed and install it if not
|
||||
if [ ! -f "/home/$user/web/$domain/public_html/wp-config.php" ]; then
|
||||
echo 'Please install WordPress first.'
|
||||
exit 1;
|
||||
fi
|
||||
|
||||
if ! command -v wp &> /dev/null; then
|
||||
echo "WP CLI is not installed. Installing..."
|
||||
wget -nv https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wp
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue