GUACAMOLE-1572: Update init script to match postgresql too

This commit is contained in:
Jean-Benoit PAUX
2022-04-11 15:06:59 +02:00
committed by Mike Jumper
parent 366b75fc23
commit 5f75ebdb5a
2 changed files with 4 additions and 4 deletions

View File

@@ -91,7 +91,7 @@ To generate a SQL script which can be used to initialize a fresh PostgreSQL
database database
[as documented in the Guacamole manual](http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-postgresql): [as documented in the Guacamole manual](http://guacamole.apache.org/doc/gug/jdbc-auth.html#jdbc-auth-postgresql):
docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgres > initdb.sql docker run --rm guacamole/guacamole /opt/guacamole/bin/initdb.sh --postgresql > initdb.sql
Alternatively, you can use the SQL scripts included with the Alternatively, you can use the SQL scripts included with the
guacamole-auth-jdbc extension from guacamole-auth-jdbc extension from

View File

@@ -26,7 +26,7 @@
## ##
## @param DATABASE ## @param DATABASE
## The database to generate the SQL script for. This may be either ## The database to generate the SQL script for. This may be either
## "--postgres", for PostgreSQL, "--mysql" for MySQL, or "--sqlserver" for Microsoft SQL Server. ## "--postgresql", for PostgreSQL, "--mysql" for MySQL, or "--sqlserver" for Microsoft SQL Server.
## ##
DATABASE="$1" DATABASE="$1"
@@ -37,7 +37,7 @@ DATABASE="$1"
## ##
incorrect_usage() { incorrect_usage() {
cat <<END cat <<END
USAGE: /opt/guacamole/bin/initdb.sh [--postgres | --mysql | --sqlserver] USAGE: /opt/guacamole/bin/initdb.sh [--postgresql | --mysql | --sqlserver]
END END
exit 1 exit 1
} }
@@ -54,7 +54,7 @@ fi
case $DATABASE in case $DATABASE in
--postgres) --postgresql)
cat /opt/guacamole/postgresql/schema/*.sql cat /opt/guacamole/postgresql/schema/*.sql
;; ;;