mirror of
https://github.com/myvesta/vesta
synced 2025-07-05 20:41:53 -07:00
v-run-wp-cli: Parameter 'PHP' to force specified PHP version
This commit is contained in:
parent
6cce5ecadd
commit
1567383b49
1 changed files with 5 additions and 1 deletions
|
@ -69,7 +69,11 @@ fi
|
||||||
mkdir -p /home/$user/.wp-cli
|
mkdir -p /home/$user/.wp-cli
|
||||||
chown $user:$user /home/$user/.wp-cli
|
chown $user:$user /home/$user/.wp-cli
|
||||||
|
|
||||||
|
if [ -z "$PHP" ]; then
|
||||||
phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain")
|
phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain")
|
||||||
|
else
|
||||||
|
phpver=$PHP
|
||||||
|
fi
|
||||||
|
|
||||||
#----------------------------------------------------------#
|
#----------------------------------------------------------#
|
||||||
# Action #
|
# Action #
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue