diff --git a/conf.sh b/conf.sh index 7224b80..6f43491 100644 --- a/conf.sh +++ b/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 + ###################