blob: 392c82ff9c804c7ba464da340eca0d7f7f9fc235 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
|
#!/bin/bash
# Escape spaces and quotes, because shell is revolting.
for arg in "$@" ; do
# Escape quotes in parameters, so that they're passed through cleanly.
arg=$(sed -e 's/"/\\"/' <<-END
$arg
END
)
CMDLINE="${CMDLINE} \"${arg}\""
done
cd /
exec su rabbitmq -c "@PREFIX@/sbin/rabbitmqctl_real ${CMDLINE}"
|