GUACAMOLE-281: Consider template GUACAMOLE_HOME in Docker image configuration sanity checks.

This commit is contained in:
Michael Jumper
2017-05-06 12:02:41 -07:00
parent 1c0ee41d0e
commit 1207d8d1dc

View File

@@ -427,7 +427,7 @@ fi
# Validate that at least one authentication backend is installed # Validate that at least one authentication backend is installed
# #
if [ -z "$INSTALLED_AUTH" ]; then if [ -z "$INSTALLED_AUTH" -a -z "$GUACAMOLE_HOME_TEMPLATE" ]; then
cat <<END cat <<END
FATAL: No authentication configured FATAL: No authentication configured
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
@@ -435,7 +435,7 @@ The Guacamole Docker container needs at least one authentication mechanism in
order to function, such as a MySQL database, PostgreSQL database, or LDAP order to function, such as a MySQL database, PostgreSQL database, or LDAP
directory. Please specify at least the MYSQL_DATABASE or POSTGRES_DATABASE directory. Please specify at least the MYSQL_DATABASE or POSTGRES_DATABASE
environment variables, or check Guacamole's Docker documentation regarding environment variables, or check Guacamole's Docker documentation regarding
configuring LDAP. configuring LDAP and/or custom extensions.
END END
exit 1; exit 1;
fi fi