mirror of
				https://git.koehlerweb.org/frodovdr/guac-install
				synced 2025-10-31 07:16:40 +01:00 
			
		
		
		
	Fix mysql password error (#126)
* Set mysql password earlier * Moved sql password export out of IF statement
This commit is contained in:
		| @@ -509,7 +509,11 @@ fi | |||||||
| systemctl enable ${TOMCAT} | systemctl enable ${TOMCAT} | ||||||
| echo | echo | ||||||
|  |  | ||||||
|  | # Set MySQL password | ||||||
|  | export MYSQL_PWD=${mysqlRootPwd} | ||||||
|  |  | ||||||
| if [ "${installMySQL}" = true ]; then | if [ "${installMySQL}" = true ]; then | ||||||
|  |  | ||||||
|     # Restart MySQL service |     # Restart MySQL service | ||||||
|     echo -e "${BLUE}Restarting MySQL service & enable at boot...${NC}" |     echo -e "${BLUE}Restarting MySQL service & enable at boot...${NC}" | ||||||
|     service mysql restart |     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}" |     echo -e "${YELLOW}MySQL Guacamole user is set to accept login from any host, please change this for security reasons if possible.${NC}" | ||||||
| fi | fi | ||||||
|  |  | ||||||
| # Set MySQL password |  | ||||||
| export MYSQL_PWD=${mysqlRootPwd} |  | ||||||
|  |  | ||||||
| # Check for ${guacDb} already being there | # Check for ${guacDb} already being there | ||||||
| echo -e "${BLUE}Checking MySQL for existing database (${guacDb})${NC}" | echo -e "${BLUE}Checking MySQL for existing database (${guacDb})${NC}" | ||||||
| SQLCODE=" | SQLCODE=" | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user