Skip to content

Commit

Permalink
Only export RabbitMQ erlang cookie in case it exists
Browse files Browse the repository at this point in the history
Change-Id: I73406c57b320d62e915f555b6dd7929f137a6a7b
  • Loading branch information
LarsMichelsen committed Oct 24, 2024
1 parent 58a460f commit 0099ab2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion omd/packages/omd/skel/.profile
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ export MAILRC="$OMD_ROOT/etc/mail.rc"
# rabbitmq will search for its configuration under $RABBITMQ_HOME/etc, see also
# https://www.rabbitmq.com/docs/install-generic-unix#file-locations
export RABBITMQ_HOME="${OMD_ROOT}"
export RABBITMQ_ERLANG_COOKIE="$(cat "${RABBITMQ_HOME}/.erlang.cookie")"
if [ -f "${RABBITMQ_HOME}/.erlang.cookie" ]; then
# Early in the site initialization the file does not exist yet
export RABBITMQ_ERLANG_COOKIE="$(cat "${RABBITMQ_HOME}/.erlang.cookie")"
fi
export RABBITMQ_NODENAME="rabbit-${OMD_SITE}@localhost"
export PATH="$OMD_ROOT/lib/rabbitmq/sbin:$PATH"

Expand Down

0 comments on commit 0099ab2

Please sign in to comment.