From 969b0e9689bb225d2fd970c810a8e5d231b4ca35 Mon Sep 17 00:00:00 2001 From: Disassembler Date: Tue, 24 Oct 2017 21:51:27 +0200 Subject: [PATCH] Fix Pandora RabbitMQ password generation (no slashes) --- 50-pandora.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/50-pandora.sh b/50-pandora.sh index b071f97..27c6b3c 100755 --- a/50-pandora.sh +++ b/50-pandora.sh @@ -34,7 +34,7 @@ sudo -u postgres psql -f /tmp/pandora-createdb.sql rm -f /tmp/pandora-createdb.sql # Configure RabbitMQ -export PANDORA_RABBIT_PWD=$(head -c 18 /dev/urandom | base64) +export PANDORA_RABBIT_PWD=$(head -c 18 /dev/urandom | base64 | tr -d "/") export PANDORA_BROKER_URL="amqp://pandora:${PANDORA_RABBIT_PWD}@localhost:5672//pandora" rabbitmqctl add_user pandora ${PANDORA_RABBIT_PWD} rabbitmqctl add_vhost /pandora