Skip to content

Commit fa77868

Browse files
committed
EasyEngine 2.0.1
1 parent 68d84d1 commit fa77868

File tree

4 files changed

+20
-12
lines changed

4 files changed

+20
-12
lines changed

CHANGELOG.txt

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
v 2.0.1 - July 21, 2014
2+
- Fixed wp-cli installation #289
3+
14
v 2.0.0 - July 14, 2014
25
- Completly rewritten code
36
- Updated wp-cli to 0.16.0

bin/update

Lines changed: 12 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

src/lib/ee_lib_variables.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Define global variables
22

33
# EasyEngine version
4-
readonly EE_VERSION='2.0.0'
4+
readonly EE_VERSION='2.0.1'
55

66
# WP-CLI version
77
readonly EE_WP_CLI_VERSION='0.16.0'

src/vendor/ee_ven_install_wpcli.sh

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
function ee_ven_install_wpcli()
44
{
5-
if [ ! -f /usr/local/bin/wp ]; then
5+
if [ ! -f /usr/bin/wp ]; then
66
ee_lib_echo "Downloading WP-CLI, please wait..."
7-
wget -qO /usr/local/bin/wp https://github.com/wp-cli/wp-cli/releases/download/v${EE_WP_CLI_VERSION}/wp-cli.phar \
7+
wget -qO /usr/bin/wp https://github.com/wp-cli/wp-cli/releases/download/v${EE_WP_CLI_VERSION}/wp-cli.phar \
88
|| ee_lib_error "Unable to download WP-CLI, exit status = " $?
99

1010
# Executable permission
11-
chmod a+x /usr/local/bin/wp
11+
chmod a+x /usr/bin/wp \
12+
|| ee_lib_error "Unable to set executable permission for wp-cli, exit status = " $?
1213

1314
# Download auto completion
1415
wget -qO /etc/bash_completion.d/wp-completion.bash https://raw.githubusercontent.com/wp-cli/wp-cli/v0.16.0/utils/wp-completion.bash

0 commit comments

Comments
 (0)