Skip to content

Commit 1fb8940

Browse files
committed
If a provided configuration value is the same as the default value, ignore it (fixes issue with "docker run ... bash" followed by "docker-entrypoint.sh rabbitmq-server" complaining about SSL environment variables not being set)
1 parent 4d12686 commit 1fb8940

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

docker-entrypoint.sh

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,10 @@ for conf in "${allConfigKeys[@]}"; do
6565
var="RABBITMQ_${conf^^}"
6666
val="${!var:-}"
6767
if [ "$val" ]; then
68+
if [ "${configDefaults[$conf]:-}" ] && [ "${configDefaults[$conf]}" = "$val" ]; then
69+
# if the value set is the same as the default, treat it as if it isn't set
70+
continue
71+
fi
6872
haveConfig=1
6973
case "$conf" in
7074
ssl_*) haveSslConfig=1 ;;

0 commit comments

Comments
 (0)