File tree Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Expand file tree Collapse file tree 1 file changed +15
-15
lines changed Original file line number Diff line number Diff line change @@ -214,28 +214,28 @@ if [[ $EUID -ne 0 ]]; then
214214 exit 1
215215fi
216216
217- # Check old EasyEngine is installed or not
218- if [ ! -f /usr/local/sbin/easyengine ]; then
219- # Check latest EasyEngine is installed or not
220- if [ ! -f /usr/local/bin/ee ]; then
221- install_dep
222- install_ee3
223- git_init
224- else
225- ee_lib_echo_fail " EasyEngine 3 allready installed on your system"
226- exit 1
227- fi
228- else
217+ if [ -f /usr/local/sbin/easyengine ]; then
229218 # Check old EasyEngine version
230219 ee version | grep ${old_ee_version} & >> /dev/null
231220 if [[ $? -ne 0 ]]; then
232- ee_lib_echo_fail " EasyEngine $old_ee_version not found on your system"
233- ee_lib_echo_fail " Please update it using command: ee update"
234- exit 1
221+ ee_lib_echo " EasyEngine $old_ee_version not found on your system"
222+ ee_lib_echo " Updating your EasyEngine to $old_ee_version for compability"
223+ wget https://raw.githubusercontent.com/rtCamp/easyengine/old-stable/bin/update && bash update
224+ if [[ $? -ne 0 ]]; then
225+ ee_lib_echo_info " Unbale to update EasyEngine2 to $old_ee_version "
226+ exit 1
227+ fi
235228 fi
236229 install_dep
237230 sync_db
238231 install_ee3
239232 update_to_ee3
240233 git_init
234+ elif [ ! -f /usr/local/bin/ee ]; then
235+ install_dep
236+ install_ee3
237+ git_init
238+ else
239+ ee_lib_echo_fail " EasyEngine 3 allready installed on your system"
240+ exit 1
241241fi
You can’t perform that action at this time.
0 commit comments