mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2024-11-14 22:47:14 +01: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
|
||||
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
|
||||
SQLCODE="
|
||||
create database guacamole_db;
|
||||
create user 'guacamole_user'@'%' identified by '$guacdbuserpassword';
|
||||
GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%';
|
||||
create database guacamole_db;
|
||||
create user 'guacamole_user'@'%' identified by '$guacdbuserpassword';
|
||||
GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%';
|
||||
flush privileges;"
|
||||
|
||||
# Execute SQL Code
|
||||
|
Loading…
Reference in New Issue
Block a user