From 2c1226ac7be4c61030c85897757600ac0ee9f33a Mon Sep 17 00:00:00 2001 From: gau1991 Date: Thu, 12 Feb 2015 17:22:50 +0530 Subject: [PATCH] Improved script --- install | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/install b/install index c884d879..44601dc8 100644 --- a/install +++ b/install @@ -303,10 +303,13 @@ elif [ ! -f /usr/local/bin/ee ]; then else ee -v 2>&1 | grep $new_ee_version &>> /dev/null if [[ $? -ne 0 ]];then - update_to_ee_latest | tee -ai $EE_INSTALL_LOG - install_ee3 | tee -ai $EE_INSTALL_LOG - git_init | tee -ai $EE_INSTALL_LOG - service nginx reload &>> /dev/null + read -p "Update EasyEngine to $new_ee_version (y/n): " ee_ans + if [ "$ee_ans" = "y" ] || [ "$ee_ans" = "Y" ]; then + update_to_ee_latest | tee -ai $EE_INSTALL_LOG + install_ee3 | tee -ai $EE_INSTALL_LOG + git_init | tee -ai $EE_INSTALL_LOG + service nginx reload &>> /dev/null + fi fi ee_lib_echo_fail "You allready have EasyEngine $new_ee_version" | tee -ai $EE_INSTALL_LOG exit 1