diff --git a/docker/containers/tactical-nats/entrypoint.sh b/docker/containers/tactical-nats/entrypoint.sh index 8a7a42a7..f58c2ff3 100644 --- a/docker/containers/tactical-nats/entrypoint.sh +++ b/docker/containers/tactical-nats/entrypoint.sh @@ -23,14 +23,14 @@ config_watcher="$(cat << EOF while true; do sleep ${NATS_CONFIG_CHECK_INTERVAL}; if [[ ! -z \${NATS_CHECK} ]]; then - NATS_RELOAD=\$(date -r '/opt/tactical/api/nats-rmm.conf') + NATS_RELOAD=\$(date -r '${NATS_CONFIG}') if [[ \$NATS_RELOAD == \$NATS_CHECK ]]; then : else nats-server --signal reload; - NATS_CHECK=\$(date -r '/opt/tactical/api/nats-rmm.conf'); + NATS_CHECK=\$(date -r '${NATS_CONFIG}'); fi - else NATS_CHECK=\$(date -r '/opt/tactical/api/nats-rmm.conf'); + else NATS_CHECK=\$(date -r '${NATS_CONFIG}'); fi done