File tree Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Expand file tree Collapse file tree 2 files changed +24
-16
lines changed Original file line number Diff line number Diff line change @@ -40,22 +40,30 @@ max_files = 7
4040
4141[stack]
4242
43- ip-address = 0.0.0.0/0 1.1.1.1 2.2.2.2
43+ ### IP address that will be used in Nginx configurations while installing
44+ ip-address = 127.0.0.1
4445
4546[mysql]
4647
48+ ### MySQL database grant host name
4749grant-host = localhost
4850
51+ ### Ask for MySQL db name while site creation
4952db-name = False
5053
54+ ### Ask for MySQL user name while site creation
5155db-user = False
5256
5357[wordpress]
5458
59+ ### Ask for WordPress prefix while site creation
5560prefix = False
5661
62+ ### User name for WordPress sites
5763user =
5864
65+ ### Password for WordPress sites
5966password =
6067
68+ ### EMail for WordPress sites
6169email =
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