diff --git a/guacamole-docker/README.md b/guacamole-docker/README.md index 0f6200f89..a6e7e1670 100644 --- a/guacamole-docker/README.md +++ b/guacamole-docker/README.md @@ -55,31 +55,31 @@ Deploying Guacamole with PostgreSQL authentication -------------------------------------------------- docker run --name some-guacamole --link some-guacd:guacd \ - --link some-postgres:postgres \ - -e POSTGRES_DATABASE=guacamole_db \ - -e POSTGRES_USER=guacamole_user \ - -e POSTGRES_PASSWORD=some_password \ - -e POSTGRES_DATABASE_FILE=/run/secrets/ \ - -e POSTGRES_USER_FILE=/run/secrets/ \ - -e POSTGRES_PASSWORD_FILE=/run/secrets/ \ + --link some-postgres:postgres \ + -e POSTGRESQL_DATABASE=guacamole_db \ + -e POSTGRESQL_USER=guacamole_user \ + -e POSTGRESQL_PASSWORD=some_password \ + -e POSTGRESQL_DATABASE_FILE=/run/secrets/ \ + -e POSTGRESQL_USER_FILE=/run/secrets/ \ + -e POSTGRESQL_PASSWORD_FILE=/run/secrets/ \ -d -p 8080:8080 guacamole/guacamole Linking Guacamole to PostgreSQL requires three environment variables. If any of these environment variables are omitted, you will receive an error message, and the image will stop: -1. `POSTGRES_DATABASE` - The name of the database to use for Guacamole +1. `POSTGRESQL_DATABASE` - The name of the database to use for Guacamole authentication. -2. `POSTGRES_USER` - The user that Guacamole will use to connect to PostgreSQL. -3. `POSTGRES_PASSWORD` - The password that Guacamole will provide when - connecting to PostgreSQL as `POSTGRES_USER`. -4. `POSTGRES_DATABASE_FILE` - The path of the docker secret containing the name +2. `POSTGRESQL_USER` - The user that Guacamole will use to connect to PostgreSQL. +3. `POSTGRESQL_PASSWORD` - The password that Guacamole will provide when + connecting to PostgreSQL as `POSTGRESQL_USER`. +4. `POSTGRESQL_DATABASE_FILE` - The path of the docker secret containing the name of database to use for Guacamole authentication. -5. `POSTGRES_USER_FILE` - The path of the docker secret containing the name of +5. `POSTGRESQL_USER_FILE` - The path of the docker secret containing the name of the user that Guacamole will use to connect to PostgreSQL. -6. `POSTGRES_PASSWORD_FILE` - The path of the docker secret containing the +6. `POSTGRESQL_PASSWORD_FILE` - The path of the docker secret containing the password that Guacamole will provide when connecting to PostgreSQL as - `POSTGRES_USER. + `POSTGRESQL_USER. ### Initializing the PostgreSQL database @@ -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 diff --git a/guacamole-docker/bin/initdb.sh b/guacamole-docker/bin/initdb.sh index 6031189c9..aa92b66bb 100755 --- a/guacamole-docker/bin/initdb.sh +++ b/guacamole-docker/bin/initdb.sh @@ -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 <