mirror of
https://git.koehlerweb.org/frodovdr/guac-install
synced 2024-11-23 01:37:13 +01:00
Fixed $VERSION variable
This commit is contained in:
parent
de47d3d07b
commit
e4198c279f
@ -12,8 +12,8 @@ apt-get install docker.io mysql-client wget jq curl
|
||||
|
||||
# Download the guacamole auth files for MySQL
|
||||
SERVER=$(curl -s 'https://www.apache.org/dyn/closer.cgi?as_json=1' | jq --raw-output '.preferred')
|
||||
wget $SERVER/incubator/guacamole/$VERSION-incubating/binary/guacamole-auth-jdbc-$VERSION-incubating.tar.gz
|
||||
tar -xzf guacamole-auth-jdbc-$VERSION-incubating.tar.gz
|
||||
wget $SERVER/incubator/guacamole/${VERSION}-incubating/binary/guacamole-auth-jdbc-${VERSION}-incubating.tar.gz
|
||||
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
|
||||
@ -30,9 +30,9 @@ flush privileges;"
|
||||
# Execute SQL Code
|
||||
echo $SQLCODE | mysql -h 127.0.0.1 -P 3306 -u root -p$MYSQLROOTPASSWORD
|
||||
|
||||
cat guacamole-auth-jdbc-$VERSION-incubating/mysql/schema/*.sql | mysql -u root -p$MYSQLROOTPASSWORD -h 127.0.0.1 -P 3306 guacamole_db
|
||||
cat guacamole-auth-jdbc-${VERSION}-incubating/mysql/schema/*.sql | mysql -u root -p$MYSQLROOTPASSWORD -h 127.0.0.1 -P 3306 guacamole_db
|
||||
|
||||
docker run --restart=always --name guacd -d glyptodon/guacd
|
||||
docker run --restart=always --name guacamole --link mysql:mysql --link guacd:guacd -e MYSQL_HOSTNAME=127.0.0.1 -e MYSQL_DATABASE=guacamole_db -e MYSQL_USER=guacamole_user -e MYSQL_PASSWORD=$GUACDBUSERPASSWORD --detach -p 8080:8080 glyptodon/guacamole
|
||||
|
||||
rm -rf guacamole-auth-jdbc-$VERSION-incubating*
|
||||
rm -rf guacamole-auth-jdbc-${VERSION}-incubating*
|
||||
|
Loading…
Reference in New Issue
Block a user