#!/bin/bash

AUTH=$(cat /etc/praim-agile/broker.conf | grep -oP '^requirepass\s+\K\S+')
PORT=$(cat /etc/praim-agile/broker.conf | grep -oP '^port\s+\K\S+')

exec /usr/bin/redis-cli -p $PORT -a $AUTH $*