Skip to content

Commit

Permalink
RESOLVED issue where the entrypoint could not support object-based en…
Browse files Browse the repository at this point in the history
…vironment variables.
  • Loading branch information
DSONE\BSS7 committed Sep 18, 2020
1 parent 9d866d7 commit 1071c6b
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,9 @@ setConfigurationValue() {
[\[\(]*[\]\)])
TYPE="array"
;;
^\{)
TYPE="object"
;;
*)
TYPE="string"
;;
Expand All @@ -109,7 +112,7 @@ setConfigurationValue() {
literal)
VALUE="$1"
;;
bool|boolean|int|integer|array)
bool|boolean|int|integer|array|object)
VALUE="$KEY = $2"
;;
string|*)
Expand Down Expand Up @@ -262,6 +265,15 @@ zulipConfiguration() {
[ "$setting_key" = "ALLOWED_HOSTS" ]; then
type="array"
fi
if [ "$setting_key" = "SOCIAL_AUTH_SAML_ORG_INFO" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_TECHNICAL_CONTACT" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_SUPPORT_CONTACT" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_SECURITY_CONFIG" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_SP_EXTRA" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_SECURITY_CONFIG" ] || \
[ "$setting_key" = "SOCIAL_AUTH_SAML_ENABLED_IDPS" ]; then
type="object"
fi
if [ "$SPECIAL_SETTING_DETECTION_MODE" = "True" ] || [ "$SPECIAL_SETTING_DETECTION_MODE" = "true" ] || \
[ "$type" = "string" ]; then
type=""
Expand Down

0 comments on commit 1071c6b

Please sign in to comment.