move wp-cli executable

This commit is contained in:
VirtuBox
2019-03-03 16:10:21 +01:00
parent 6f93f355c5
commit 7c919c8e19
2 changed files with 2 additions and 1 deletions

View File

@@ -369,6 +369,7 @@ function wo_update_wp_cli()
else
wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/WordOps/wpcli-builds/gh-pages/phar/wp-cli.phar
chmod +x /usr/local/bin/wp
ln -s /usr/local/bin/wp /usr/bin/
fi
[ -d /etc/bash_completion ] && {

View File

@@ -20,7 +20,7 @@ class WOVariables():
# Get WPCLI path
wo_wpcli_path = os.popen('command -v wp | tr "\n" " "').read()
if wo_wpcli_path == '':
wo_wpcli_path = '/usr/bin/wp '
wo_wpcli_path = '/usr/local/bin/wp '
# Current date and time of System
wo_date = datetime.datetime.now().strftime('%d%b%Y%H%M%S')