Browse Source

Update install script

feature/refactor-php
Prabuddha Chakraborty 9 years ago
parent
commit
ebdaa48c44
  1. 10
      install

10
install

@ -282,15 +282,15 @@ function ee_update_latest()
then then
if [ -f ~/.my.cnf ] if [ -f ~/.my.cnf ]
then then
cp ~/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null || ee_lib_error "Unable to copy ~/.my.cnf, exit status " 1 cp ~/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null
chmod 600 /etc/mysql/conf.d/my.cnf || ee_lib_error "Unable to change permissions for /etc/mysql/conf.d/my.cnf, exit status " 1 chmod 600 /etc/mysql/conf.d/my.cnf
else else
if [ -f /root/.my.cnf ] if [ -f /root/.my.cnf ]
then then
cp /root/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null || ee_lib_error "Unable to copy ~/.my.cnf, exit status " 1 cp /root/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null
chmod 600 /etc/mysql/conf.d/my.cnf || ee_lib_error "Unable to change permissions for /etc/mysql/conf.d/my.cnf, exit status " 1 chmod 600 /etc/mysql/conf.d/my.cnf
else else
ee_lib_error ".my.cnf cannot be located in your current user or root. Exiting easyengine update process, exit status " 1 ee_lib_echo_fail ".my.cnf cannot be located in your current user or root."
fi fi
fi fi
fi fi

Loading…
Cancel
Save