mirror of
https://github.com/gyurix1968/guacamole-client.git
synced 2025-09-05 20:57:40 +00:00
GUACAMOLE-1572: Update init script to match postgresql too
This commit is contained in:
committed by
Mike Jumper
parent
366b75fc23
commit
5f75ebdb5a
@@ -91,7 +91,7 @@ To generate a SQL script which can be used to initialize a fresh PostgreSQL
|
||||
database
|
||||
[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
|
||||
guacamole-auth-jdbc extension from
|
||||
|
@@ -26,7 +26,7 @@
|
||||
##
|
||||
## @param DATABASE
|
||||
## 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"
|
||||
@@ -37,7 +37,7 @@ DATABASE="$1"
|
||||
##
|
||||
incorrect_usage() {
|
||||
cat <<END
|
||||
USAGE: /opt/guacamole/bin/initdb.sh [--postgres | --mysql | --sqlserver]
|
||||
USAGE: /opt/guacamole/bin/initdb.sh [--postgresql | --mysql | --sqlserver]
|
||||
END
|
||||
exit 1
|
||||
}
|
||||
@@ -54,7 +54,7 @@ fi
|
||||
|
||||
case $DATABASE in
|
||||
|
||||
--postgres)
|
||||
--postgresql)
|
||||
cat /opt/guacamole/postgresql/schema/*.sql
|
||||
;;
|
||||
|
||||
|
Reference in New Issue
Block a user