diff --git a/bin/update b/bin/update index cf770751..d332bd74 100644 --- a/bin/update +++ b/bin/update @@ -143,7 +143,7 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then || ee_lib_error "Unable to copy EasyEngine (ee) man page, exit status = " $? - if [[ $EE_CURRENT_VERSION < 2.0.0 ]]; then + if [[ $EE_CURRENT_VERSION < 1.9.0 ]]; then # EasyEngine (ee) config file cp -av /etc/easyengine/ee.conf /etc/easyengine/ee.bak &>> $EE_UPDATE_LOG cp -av /tmp/easyengine/config/easyengine/ee.conf /etc/easyengine/ &>> $EE_UPDATE_LOG \ @@ -385,11 +385,11 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then fi fi - if [[ $EE_CURRENT_VERSION < 2.0.1 ]]; then + if [[ $EE_CURRENT_VERSION > 1.9.0 ]]; then # Lets re-used our functions # Include library - if [ $ee_source != 1 ]; then + if [ -z $ee_source ]; then for ee_include in $(find /usr/local/lib/easyengine/ -iname "*.sh"); do source $ee_include done @@ -408,6 +408,7 @@ if [[ $EE_CURRENT_VERSION < $EE_LATEST_VERSION ]]; then # Update EasyEngine current version EE_CURRENT_VERSION="2.0.1" fi + if [[ $EE_CURRENT_VERSION = 2.0.1 ]]; then sed -i 's/host =.*/grant-host = localhost/' /etc/easyengine/ee.conf fi