Browse Source

Merge branch 'python' of github.com:rtCamp/easyengine into python

bugfixes
harshadyeola 10 years ago
parent
commit
b7aac85574
  1. 10
      config/ee.conf
  2. 30
      install

10
config/ee.conf

@ -40,22 +40,30 @@ max_files = 7
[stack]
ip-address = 0.0.0.0/0 1.1.1.1 2.2.2.2
### IP address that will be used in Nginx configurations while installing
ip-address = 127.0.0.1
[mysql]
### MySQL database grant host name
grant-host = localhost
### Ask for MySQL db name while site creation
db-name = False
### Ask for MySQL user name while site creation
db-user = False
[wordpress]
### Ask for WordPress prefix while site creation
prefix = False
### User name for WordPress sites
user =
### Password for WordPress sites
password =
### EMail for WordPress sites
email =

30
install

@ -214,28 +214,28 @@ if [[ $EUID -ne 0 ]]; then
exit 1
fi
# Check old EasyEngine is installed or not
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
if [ -f /usr/local/sbin/easyengine ]; then
# Check old EasyEngine version
ee version | grep ${old_ee_version} &>> /dev/null
if [[ $? -ne 0 ]]; then
ee_lib_echo_fail "EasyEngine $old_ee_version not found on your system"
ee_lib_echo_fail "Please update it using command: ee update"
exit 1
ee_lib_echo "EasyEngine $old_ee_version not found on your system"
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
fi
fi
install_dep
sync_db
install_ee3
update_to_ee3
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

Loading…
Cancel
Save