#!/bin/sh

echo "Running registrar"
replace=""
if test "$PREPROCESSOR_REPLACE" = true; then
    replace="--replace"
fi

python3 /registrar.py --mode redis --redis-host ${REDIS_HOST} --redis-port ${REDIS_PORT} --redis-register-queue-key ${REDIS_REGISTER_QUEUE_KEY} --redis-registered-set-key ${REDIS_REGISTERED_SET_KEY} ${replace}
