mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-06 05:07:41 +00:00
GUACAMOLE-1418: Add support of SQL Server JDBC plugin in Docker Image
This commit is contained in:
@@ -26,7 +26,7 @@
|
||||
##
|
||||
## @param DATABASE
|
||||
## The database to generate the SQL script for. This may be either
|
||||
## "--postgres", for PostgreSQL, or "--mysql" for MySQL.
|
||||
## "--postgres", for PostgreSQL, "--mysql" for MySQL, or "--sqlserver" for Microsoft SQL Server.
|
||||
##
|
||||
|
||||
DATABASE="$1"
|
||||
@@ -37,7 +37,7 @@ DATABASE="$1"
|
||||
##
|
||||
incorrect_usage() {
|
||||
cat <<END
|
||||
USAGE: /opt/guacamole/bin/initdb.sh [--postgres | --mysql]
|
||||
USAGE: /opt/guacamole/bin/initdb.sh [--postgres | --mysql | --sqlserver]
|
||||
END
|
||||
exit 1
|
||||
}
|
||||
@@ -62,6 +62,10 @@ case $DATABASE in
|
||||
cat /opt/guacamole/mysql/schema/*.sql
|
||||
;;
|
||||
|
||||
--sqlserver)
|
||||
cat /opt/guacamole/sqlserver/schema/*.sql
|
||||
;;
|
||||
|
||||
*)
|
||||
echo "Bad database type: $DATABASE"
|
||||
incorrect_usage
|
||||
|
Reference in New Issue
Block a user