Skip to content
This repository was archived by the owner on Aug 30, 2021. It is now read-only.

Commit aa84ddc

Browse files
dumbbellGerhard Lazu
authored and
Gerhard Lazu
committed
Define shell explicitly for runuser command
Because the rabbitmq user shell defaults to /bin/false, we must explicitly define a shell when using the runuser command Issue: #32 PR: #40 [#150221349] Signed-off-by: Gerhard Lazu <[email protected]>
1 parent a36d1c1 commit aa84ddc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rabbitmq-script-wrapper

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ exec_script_as_rabbitmq() {
8383
exec_script_as_root() {
8484
if [ -x /sbin/runuser ]
8585
then
86-
exec /sbin/runuser -c "/usr/lib/rabbitmq/bin/$SCRIPT $CMDLINE" rabbitmq
86+
exec /sbin/runuser -s /bin/sh -c "/usr/lib/rabbitmq/bin/$SCRIPT $CMDLINE" rabbitmq
8787
elif [ -x /bin/su ]
8888
then
8989
exec /bin/su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/$SCRIPT $CMDLINE"

0 commit comments

Comments
 (0)