From 6f10b323ff5b304e293442f5b062016c47050c0c Mon Sep 17 00:00:00 2001 From: Chris Croome <chris@webarchitects.co.uk> Date: Fri, 1 Dec 2017 17:49:13 +0000 Subject: [PATCH] Added WP CLI PATH --- roles/live2dev/templates/update.j2 | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/roles/live2dev/templates/update.j2 b/roles/live2dev/templates/update.j2 index a77ff29..b5f3d20 100644 --- a/roles/live2dev/templates/update.j2 +++ b/roles/live2dev/templates/update.j2 @@ -11,6 +11,9 @@ if [[ "${LOGNAME}" != "{{ item }}" ]]; then fi fi +# Find where WP CLI is +WP=$(which wp) + cd /home/{{ item }}/sites git stash save "Local changes stashed" git pull @@ -21,5 +24,5 @@ composer update npm install nodejs ./node_modules/gulp/bin/gulp.js cd ../../.. -wp core update-db +${WP} core update-db cd /home/{{ item }}/sites -- GitLab