From d59c4fafe270856fd3468b563c7e990d5b576915 Mon Sep 17 00:00:00 2001 From: myvesta <38690722+myvesta@users.noreply.github.com> Date: Thu, 30 May 2024 14:11:17 +0200 Subject: [PATCH] Update v-run-wpcli to use $phpver --- bin/v-run-wpcli | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/v-run-wpcli b/bin/v-run-wpcli index 8937642a..3ab4b4e5 100644 --- a/bin/v-run-wpcli +++ b/bin/v-run-wpcli @@ -63,12 +63,14 @@ if [ ! -d "/home/$user/web/$domain/public_html" ]; then exit 1; fi +phpver=$(/usr/local/vesta/bin/v-get-php-version-of-domain "$domain") + #----------------------------------------------------------# # Action # #----------------------------------------------------------# cd /home/$USER/web/$domain/public_html -sudo -u $USER wp $wp_command +sudo -u $USER /usr/bin/php$phpver /usr/local/bin/wp $wp_command --skip-plugins=$(sudo -H -u$USER /usr/bin/php$phpver /usr/local/bin/wp plugin list --field=name | tr '\n' ',') --skip-themes; #----------------------------------------------------------# # Vesta #