mirror of
https://github.com/MysticRyuujin/guac-install.git
synced 2023-10-10 13:36:56 +02:00
MySQL Sleep
This commit is contained in:
parent
b5ba64a6c0
commit
cc71a019dc
@ -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
|
||||||
|
Loading…
Reference in New Issue
Block a user