@@ -232,7 +232,6 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then
232232 # Update EasyEngine current version
233233 EE_CURRENT_VERSION=" 1.2.2"
234234 fi
235-
236235 if [[ $EE_CURRENT_VERSION = 1.2.2 ]]; then
237236 # Update NGINX configuration
238237 sed -i " /worker_processes/a \worker_rlimit_nofile 100000;" /etc/nginx/nginx.conf
@@ -337,7 +336,6 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then
337336 # Update EasyEngine current version
338337 EE_CURRENT_VERSION=" 1.3.0"
339338 fi
340-
341339 if [[ $EE_CURRENT_VERSION = 1.3.0 ]] || [[ $EE_CURRENT_VERSION = 1.3.1 ]] || [[ $EE_CURRENT_VERSION = 1.3.2 ]] || [[ $EE_CURRENT_VERSION = 1.3.3 ]]; then
342340 grep " ^pm = ondemand" /etc/php5/fpm/pool.d/www.conf & >> $EE_UPDATE_LOG
343341 if [ $? -ne 0 ]; then
@@ -379,15 +377,21 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then
379377 fi
380378 fi
381379
380+ # Update EasyEngine current version
381+ EE_CURRENT_VERSION=" 2.0.0"
382+ fi
383+ fi
384+
385+ if [[ $EE_CURRENT_VERSION < 2.0.1 ]]; then
386+ if [[ $EE_CURRENT_VERSION = 2.0.0 ]]; then
382387 dpkg -l | grep php5-fpm & >> $EE_UPDATE_LOG
383388 if [ $? -eq 0 ]; then
384- EE_WP_CLI_VERSION_LOCAL= $( wp --allow-root --info | grep " WP-CLI version " | awk ' {print $3} ' )
385- if [[ $EE_WP_CLI_VERSION_LOCAL != " $EE_WP_CLI_VERSION " ]] ; then
386- rm -rf /usr/share/easyengine/wp-cli /usr/bin/wp /etc/bash_completion.d/wp-completion.bash
389+
390+ # WP-CLI change the installation method
391+ rm -rf /usr/share/easyengine/wp-cli /usr/share/wp-cli /usr/bin/wp /etc/bash_completion.d/wp-completion.bash
387392
388- # Install WP-CLI
389- ee_ven_install_wpcli
390- fi
393+ # Install WP-CLI
394+ ee_ven_install_wpcli
391395 fi
392396 fi
393397 fi
0 commit comments