Moved sql password export

out of IF statement
This commit is contained in:
blinklet 2020-04-08 09:38:29 -04:00
parent 1e5e69af48
commit d3443784aa
1 changed files with 3 additions and 2 deletions

View File

@ -509,9 +509,10 @@ fi
systemctl enable ${TOMCAT}
echo
# Set MySQL password
export MYSQL_PWD=${mysqlRootPwd}
if [ "${installMySQL}" = true ]; then
# Set MySQL password
export MYSQL_PWD=${mysqlRootPwd}
# Restart MySQL service
echo -e "${BLUE}Restarting MySQL service & enable at boot...${NC}"