Added check if wp-cli is installed and optimized install
Added check because it can also be installed by Web-V2 Optimized install of wp-cli
This commit is contained in:
11
conf.sh
11
conf.sh
@@ -15,11 +15,12 @@ sed -i -e '$a set sftp:auto-confirm yes' /etc/lftp.conf
|
||||
# wp-cli #
|
||||
##############
|
||||
|
||||
cd /opt
|
||||
wget https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /opt/wp-cli.phar
|
||||
wget https://raw.githubusercontent.com/wp-cli/wp-cli/v1.5.1/utils/wp-completion.bash -O /opt/wp-completion.bash
|
||||
chmod +x /opt/wp-cli.phar
|
||||
mv /opt/wp-cli.phar /usr/local/bin/wp
|
||||
if [ ! -f /usr/local/bin/wp ]; then
|
||||
wget -q -t7 https://raw.githubusercontent.com/wp-cli/wp-cli/v2.4.0/utils/wp-completion.bash -O /etc/bash_completion.d/wp
|
||||
wget -q -t7 https://raw.githubusercontent.com/wp-cli/builds/gh-pages/phar/wp-cli.phar -O /usr/local/bin/wp
|
||||
chmod +x /usr/local/bin/wp
|
||||
fi
|
||||
|
||||
|
||||
|
||||
###################
|
||||
|
||||
Reference in New Issue
Block a user