move wp-cli executable
This commit is contained in:
1
install
1
install
@@ -369,6 +369,7 @@ function wo_update_wp_cli()
|
|||||||
else
|
else
|
||||||
wget -qO /usr/local/bin/wp https://raw.githubusercontent.com/WordOps/wpcli-builds/gh-pages/phar/wp-cli.phar
|
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
|
chmod +x /usr/local/bin/wp
|
||||||
|
ln -s /usr/local/bin/wp /usr/bin/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
[ -d /etc/bash_completion ] && {
|
[ -d /etc/bash_completion ] && {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@ class WOVariables():
|
|||||||
# Get WPCLI path
|
# Get WPCLI path
|
||||||
wo_wpcli_path = os.popen('command -v wp | tr "\n" " "').read()
|
wo_wpcli_path = os.popen('command -v wp | tr "\n" " "').read()
|
||||||
if wo_wpcli_path == '':
|
if wo_wpcli_path == '':
|
||||||
wo_wpcli_path = '/usr/bin/wp '
|
wo_wpcli_path = '/usr/local/bin/wp '
|
||||||
|
|
||||||
# Current date and time of System
|
# Current date and time of System
|
||||||
wo_date = datetime.datetime.now().strftime('%d%b%Y%H%M%S')
|
wo_date = datetime.datetime.now().strftime('%d%b%Y%H%M%S')
|
||||||
|
|||||||
Reference in New Issue
Block a user