Browse Source

Updated update script

bugfixes
gau1991 10 years ago
parent
commit
d966157e7d
  1. 28
      install

28
install

@ -214,28 +214,28 @@ if [[ $EUID -ne 0 ]]; then
exit 1 exit 1
fi fi
# Check old EasyEngine is installed or not if [ -f /usr/local/sbin/easyengine ]; then
if [ ! -f /usr/local/sbin/easyengine ]; then
# Check latest EasyEngine is installed or not
if [ ! -f /usr/local/bin/ee ]; then
install_dep
install_ee3
git_init
else
ee_lib_echo_fail "EasyEngine 3 allready installed on your system"
exit 1
fi
else
# Check old EasyEngine version # Check old EasyEngine version
ee version | grep ${old_ee_version} &>> /dev/null ee version | grep ${old_ee_version} &>> /dev/null
if [[ $? -ne 0 ]]; then if [[ $? -ne 0 ]]; then
ee_lib_echo_fail "EasyEngine $old_ee_version not found on your system" ee_lib_echo "EasyEngine $old_ee_version not found on your system"
ee_lib_echo_fail "Please update it using command: ee update" ee_lib_echo "Updating your EasyEngine to $old_ee_version for compability"
wget https://raw.githubusercontent.com/rtCamp/easyengine/old-stable/bin/update && bash update
if [[ $? -ne 0 ]]; then
ee_lib_echo_info "Unbale to update EasyEngine2 to $old_ee_version"
exit 1 exit 1
fi fi
fi
install_dep install_dep
sync_db sync_db
install_ee3 install_ee3
update_to_ee3 update_to_ee3
git_init git_init
elif [ ! -f /usr/local/bin/ee ]; then
install_dep
install_ee3
git_init
else
ee_lib_echo_fail "EasyEngine 3 allready installed on your system"
exit 1
fi fi

Loading…
Cancel
Save