Browse Source

update wp-cli on ee-update

hotfix/v3.3.15
harshadyeola 9 years ago
parent
commit
349308c619
  1. 2
      CHANGELOG.txt
  2. 17
      install

2
CHANGELOG.txt

@ -1,5 +1,5 @@
v3.3.15 - Dec 9, 2015 v3.3.15 - Dec 9, 2015
- Upgrade wp-cli version to 0.21.1. - Upgrade wp-cli version to 0.21.1
v 3.3.14 - Nov 10, 2015 v 3.3.14 - Nov 10, 2015
- Fix EasyEngine installation issue - Fix EasyEngine installation issue

17
install

@ -216,12 +216,28 @@ function ee_sync_db()
fi fi
} }
function secure_ee_db() function secure_ee_db()
{ {
chown -R root:root /var/lib/ee/ chown -R root:root /var/lib/ee/
chmod -R 600 /var/lib/ee/ chmod -R 600 /var/lib/ee/
} }
function ee_update_wp_cli()
{
ee_lib_echo "Updating WP-CLI version to resolve compatibility issue."
PHP_PATH=$(which php)
WP_CLI_PATH=$(which wp)
if [ "${WP_CLI_PATH}" != "" ]; then
# Get WP-CLI version
WP_CLI_VERSION=$(${PHP_PATH} ${WP_CLI_PATH} --allow-root cli version | awk '{ print $2 }')
if [ "${WP_CLI_VERSION}" -lt "0.21.1" ]; then
echo "y" | ee stack upgrade --wpcli
fi
fi
}
# Install EasyEngine 3.x # Install EasyEngine 3.x
function ee_install() function ee_install()
{ {
@ -563,6 +579,7 @@ else
ee_git_init | tee -ai $ee_install_log ee_git_init | tee -ai $ee_install_log
service nginx reload &>> /dev/null service nginx reload &>> /dev/null
service php5-fpm restart &>> /dev/null service php5-fpm restart &>> /dev/null
ee_update_wp_cli | tee -ai $ee_install_log
else else
ee_lib_error "Not updating EasyEngine to $ee_version_new, exit status = " 1 ee_lib_error "Not updating EasyEngine to $ee_version_new, exit status = " 1
fi fi

Loading…
Cancel
Save