From 0cb80f82ca87432ccd7e6ef5497455baa0a5bf51 Mon Sep 17 00:00:00 2001 From: Chase Wright Date: Sat, 11 Feb 2017 08:49:09 -0600 Subject: [PATCH] Updated SQL code from localhost to % --- guac-install.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/guac-install.sh b/guac-install.sh index 0e70394..57d79b9 100644 --- a/guac-install.sh +++ b/guac-install.sh @@ -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 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-auth-jdbc-$VERSION-incubating.tar.gz tar -xzf mysql-connector-java-5.1.40.tar.gz @@ -77,8 +77,8 @@ service tomcat8 restart # SQL Code SQLCODE=" create database guacamole_db; -create user 'guacamole_user'@'localhost' identified by \"$guacdbuserpassword\"; -GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'localhost'; +create user 'guacamole_user'@'%' identified by \"$guacdbuserpassword\"; +GRANT SELECT,INSERT,UPDATE,DELETE ON guacamole_db.* TO 'guacamole_user'@'%'; flush privileges;" # Execute SQL Code