Browse Source

Avoid Duplicate entry

old-stable
Mitesh Shah 11 years ago
parent
commit
b6c1ae9e1b
  1. 5
      src/modules/system/install/ee_mod_setup_mysql.sh
  2. 4
      src/modules/system/install/ee_mod_setup_nginx.sh

5
src/modules/system/install/ee_mod_setup_mysql.sh

@ -5,5 +5,8 @@ function ee_mod_setup_mysql()
ee_lib_echo "Setting up MySQL, please wait..."
# Setting wait_timeout = 30 & interactive_timeout = 60
sed -i "/#max_connections/a wait_timeout = 30 \ninteractive_timeout = 60" /etc/mysql/my.cnf
grep "_timeout" /etc/mysql/my.cnf &>> $EE_COMMAND_LOG
if [ $? -ne 0 ]; then
sed -i "/#max_connections/a wait_timeout = 30 \ninteractive_timeout = 60" /etc/mysql/my.cnf
fi
}

4
src/modules/system/install/ee_mod_setup_nginx.sh

@ -93,5 +93,7 @@ function ee_mod_setup_nginx()
fi
# Set easyengine:easyengine as default http authentication
printf "easyengine:$(openssl passwd -crypt easyengine 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null
if [ ! -f /etc/nginx/htpasswd-ee ]; then
printf "easyengine:$(openssl passwd -crypt easyengine 2> /dev/null)\n" > /etc/nginx/htpasswd-ee 2> /dev/null
fi
}

Loading…
Cancel
Save