|
@ -280,18 +280,21 @@ function ee_update_latest() |
|
|
#Move ~/.my.cnf to /etc/mysql/conf.d/my.cnf |
|
|
#Move ~/.my.cnf to /etc/mysql/conf.d/my.cnf |
|
|
if [ ! -f /etc/mysql/conf.d/my.cnf ] |
|
|
if [ ! -f /etc/mysql/conf.d/my.cnf ] |
|
|
then |
|
|
then |
|
|
if [ -f ~/.my.cnf ] |
|
|
if [ -d /etc/mysql/conf.d ] |
|
|
then |
|
|
then |
|
|
cp ~/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null |
|
|
if [ -f ~/.my.cnf ] |
|
|
chmod 600 /etc/mysql/conf.d/my.cnf |
|
|
|
|
|
else |
|
|
|
|
|
if [ -f /root/.my.cnf ] |
|
|
|
|
|
then |
|
|
then |
|
|
cp /root/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null |
|
|
cp ~/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null |
|
|
chmod 600 /etc/mysql/conf.d/my.cnf |
|
|
chmod 600 /etc/mysql/conf.d/my.cnf |
|
|
else |
|
|
else |
|
|
ee_lib_echo_fail ".my.cnf cannot be located in your current user or root." |
|
|
if [ -f /root/.my.cnf ] |
|
|
fi |
|
|
then |
|
|
|
|
|
cp /root/.my.cnf /etc/mysql/conf.d/my.cnf &>> /dev/null |
|
|
|
|
|
chmod 600 /etc/mysql/conf.d/my.cnf |
|
|
|
|
|
else |
|
|
|
|
|
ee_lib_echo_fail ".my.cnf cannot be located in your current user or root." |
|
|
|
|
|
fi |
|
|
|
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
fi |
|
|
ee_lib_echo "Updating Nginx configuration, please wait..." |
|
|
ee_lib_echo "Updating Nginx configuration, please wait..." |
|
|