1
0
mirror of https://github.com/MysticRyuujin/guac-install.git synced 2023-10-10 13:36:56 +02:00

Fix mysql password error (#126)

* Set mysql password earlier

* Moved sql password export
out of IF statement
This commit is contained in:
blinklet 2020-04-08 09:40:49 -04:00 committed by GitHub
parent 8645897f64
commit 5fb4d6baee
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -509,7 +509,11 @@ fi
systemctl enable ${TOMCAT}
echo
# Set MySQL password
export MYSQL_PWD=${mysqlRootPwd}
if [ "${installMySQL}" = true ]; then
# Restart MySQL service
echo -e "${BLUE}Restarting MySQL service & enable at boot...${NC}"
service mysql restart
@ -572,9 +576,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="