mirror of
				https://git.koehlerweb.org/frodovdr/guac-install
				synced 2025-10-31 10:46:39 +01:00 
			
		
		
		
	MySQL Sleep
This commit is contained in:
		| @@ -22,13 +22,16 @@ tar -xzf guacamole-auth-jdbc-${VERSION}-incubating.tar.gz | |||||||
| # Start MySQL | # Start MySQL | ||||||
| docker run --restart=always --detach --name=mysql --env="MYSQL_ROOT_PASSWORD=$MYSQLROOTPASSWORD" --publish 3306:3306 mysql | docker run --restart=always --detach --name=mysql --env="MYSQL_ROOT_PASSWORD=$MYSQLROOTPASSWORD" --publish 3306:3306 mysql | ||||||
|  |  | ||||||
| # Create the Guacamole database and the user account | # Sleep to let MySQL load (there's probably a better way to do this) | ||||||
|  | echo "Waiting 30 seconds for MySQL to load" | ||||||
|  | sleep 30 | ||||||
|  |  | ||||||
|  | # Create the Guacamole database and the user account | ||||||
| # SQL Code | # SQL Code | ||||||
| SQLCODE=" | SQLCODE=" | ||||||
| create database guacamole_db; | create database guacamole_db;  | ||||||
| create user 'guacamole_user'@'%' identified by '$guacdbuserpassword'; | create user 'guacamole_user'@'%' identified by '$guacdbuserpassword';  | ||||||
| GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%'; | GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%';  | ||||||
| flush privileges;" | flush privileges;" | ||||||
|  |  | ||||||
| # Execute SQL Code | # Execute SQL Code | ||||||
|   | |||||||
		Reference in New Issue
	
	Block a user