Decouple config files from HiveMQ Docker Image

What changes need to be modify in pre-entry.sh script.

Below is contents of pre-entry.sh in hivemq-4.3.5 image.

#!/usr/bin/env bash

if [[ “${HIVEMQ_CLUSTER_TRANSPORT_TYPE}” == “UDP” ]]; then
# shellcheck disable=SC2016
sed -i -e ‘s|–TRANSPORT_TYPE–|${HIVEMQ_BIND_ADDRESS}${HIVEMQ_CLUSTER_PORT}false|’ /opt/hivemq/conf/config.xml
elif [[ “${HIVEMQ_CLUSTER_TRANSPORT_TYPE}” == “TCP” ]]; then
# shellcheck disable=SC2016
sed -i -e ‘s|–TRANSPORT_TYPE–|${HIVEMQ_BIND_ADDRESS}${HIVEMQ_CLUSTER_PORT}|’ /opt/hivemq/conf/config.xml
fi

exec /opt/docker-entrypoint.sh “$@”