GUACAMOLE-1418: Add support of SQL Server JDBC plugin in Docker Image

This commit is contained in:
Jean-Benoit Paux
2021-09-16 10:38:47 +02:00
parent 002cfded80
commit f66c81f351
4 changed files with 229 additions and 11 deletions

View File

@@ -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