Set mysql password earlier

This commit is contained in:
blinklet 2020-04-07 21:11:55 -04:00
parent 8645897f64
commit 1e5e69af48
1 changed files with 3 additions and 3 deletions

View File

@ -510,6 +510,9 @@ systemctl enable ${TOMCAT}
echo
if [ "${installMySQL}" = true ]; then
# Set MySQL password
export MYSQL_PWD=${mysqlRootPwd}
# Restart MySQL service
echo -e "${BLUE}Restarting MySQL service & enable at boot...${NC}"
service mysql restart
@ -572,9 +575,6 @@ if [[ "${mysqlHost}" != "localhost" ]]; then
echo -e "${YELLOW}MySQL Guacamole user is set to accept login from any host, please change this for security reasons if possible.${NC}"
fi
# Set MySQL password
export MYSQL_PWD=${mysqlRootPwd}
# Check for ${guacDb} already being there
echo -e "${BLUE}Checking MySQL for existing database (${guacDb})${NC}"
SQLCODE="