mirror of
https://github.com/myvesta/vesta
synced 2025-08-14 02:28:05 -07:00
Update v-add-wordpress-admin to use $phpver
This commit is contained in:
parent
6a72798aba
commit
67b8376608
1 changed files with 3 additions and 1 deletions
|
@ -65,12 +65,14 @@ if ! command -v wp &> /dev/null; then
|
||||||
echo "WP CLI installed successfully."
|
echo "WP CLI installed successfully."
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain")
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Action #
|
# Action #
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
|
|
||||||
cd /home/$USER/web/$domain/public_html
|
cd /home/$USER/web/$domain/public_html
|
||||||
sudo -u $USER wp user create $username $email --role=administrator --user_pass="$password"
|
sudo -u $USER /usr/bin/php$phpver /usr/local/bin/wp user create $username $email --role=administrator --user_pass="$password" --skip-plugins=$(sudo -H -u$USER /usr/bin/php$phpver /usr/local/bin/wp plugin list --field=name | tr '\n' ',') --skip-themes;
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Vesta #
|
# Vesta #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue