Fixes for the RABBITMQ_HOST

This commit is contained in:
Alexander Trost
2015-10-12 12:24:48 +02:00
parent 6bc34d68d2
commit 42bc4bc1c0

View File

@@ -115,7 +115,10 @@ CACHES = {
}
EOF
# Rabbitmq settings
sed -i "s~pika.ConnectionParameters('localhost',~pika.ConnectionParameters('$RABBITMQ_HOST',~g"
sed -i "s~pika.ConnectionParameters('localhost',~pika.ConnectionParameters(settings.RABBITMQ_HOST,~g" "$ZULIP_CURRENT_DEPLOY/zerver/lib/queue.py"
cat >> "$ZULIP_ZPROJECT_SETTINGS" <<EOF
RABBITMQ_HOST = '$RABBITMQ_HOST'
EOF
if [ ! -z "$RABBITMQ_USERNAME" ]; then
cat >> "$ZULIP_ZPROJECT_SETTINGS" <<EOF
RABBITMQ_USERNAME = '$RABBITMQ_USERNAME'