v-run-wp-cli: Parameter 'PHP' to force specified PHP version

This commit is contained in:
Peca 2025-06-28 16:49:18 +02:00
parent 6cce5ecadd
commit 1567383b49

View file

@ -69,7 +69,11 @@ fi
mkdir -p /home/$user/.wp-cli
chown $user:$user /home/$user/.wp-cli
phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain")
if [ -z "$PHP" ]; then
phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain")
else
phpver=$PHP
fi
#----------------------------------------------------------#
# Action #