[rabbitmq-discuss] Can't use backtick in password

Simon MacMullen simon at rabbitmq.com
Tue Aug 20 13:58:21 BST 2013


On 20/08/13 08:12, Kal Sze wrote:
> After obtaining some help from the #bash channel on Freenode IRC, it
> appears that the correct fix would be to use proper string substitution
> in the rabbitmqctlscript:
>
> Replace this line:\
>      su rabbitmq -s /bin/sh -c "/usr/lib/rabbitmq/bin/${SCRIPT} ${CMDLINE}"
>
> With this line:
>      su rabbitmq -s /bin/sh -c 'script=$1; shift; "$script" "$@"' _
> "/usr/lib/rabbitmq/bin/${SCRIPT}" "$@"

Ah, thank you. We will stare carefully at this change, all the while 
cursing whoever invented string substitution in shell scripts... :-)

Cheers, Simon

-- 
Simon MacMullen
RabbitMQ, Pivotal


More information about the rabbitmq-discuss mailing list