diff --git a/roles/live2dev/templates/update.j2 b/roles/live2dev/templates/update.j2
index a77ff293bf2a878452e55a05ba85af24fcd69d7a..b5f3d20c5c0f7feef137cc2a80c24c69eda192dd 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