1
0
mirror of https://git.koehlerweb.org/frodovdr/guac-install synced 2024-11-23 01:37:13 +01:00

Updated SQL code from localhost to %

This commit is contained in:
Chase Wright 2017-02-11 08:49:09 -06:00 committed by GitHub
parent 72f61761ed
commit 0cb80f82ca

View File

@ -34,7 +34,7 @@ wget $SERVER/incubator/guacamole/$VERSION-incubating/binary/guacamole-$VERSION-i
wget $SERVER/incubator/guacamole/$VERSION-incubating/binary/guacamole-auth-jdbc-$VERSION-incubating.tar.gz wget $SERVER/incubator/guacamole/$VERSION-incubating/binary/guacamole-auth-jdbc-$VERSION-incubating.tar.gz
wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz wget https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-5.1.40.tar.gz
#Extract Guacamole Files # Extract Guacamole Files
tar -xzf guacamole-server-$VERSION-incubating.tar.gz tar -xzf guacamole-server-$VERSION-incubating.tar.gz
tar -xzf guacamole-auth-jdbc-$VERSION-incubating.tar.gz tar -xzf guacamole-auth-jdbc-$VERSION-incubating.tar.gz
tar -xzf mysql-connector-java-5.1.40.tar.gz tar -xzf mysql-connector-java-5.1.40.tar.gz
@ -77,8 +77,8 @@ service tomcat8 restart
# SQL Code # SQL Code
SQLCODE=" SQLCODE="
create database guacamole_db; create database guacamole_db;
create user 'guacamole_user'@'localhost' identified by \"$guacdbuserpassword\"; create user 'guacamole_user'@'%' identified by \"$guacdbuserpassword\";
GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost'; GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%';
flush privileges;" flush privileges;"
# Execute SQL Code # Execute SQL Code