This commit is contained in:
2026-07-13 15:46:44 +02:00
commit 1df9d878ca
1729 changed files with 326867 additions and 0 deletions
+17
View File
@@ -0,0 +1,17 @@
#!/bin/sh
set -eu
CONFIG_DIR="${CONFIG_DIR:-/mosquitto/config}"
RUNTIME_CONF="${RUNTIME_CONF:-/tmp/mosquitto.conf}"
MQTT_TLS_ENABLED="${MQTT_TLS_ENABLED:-true}"
case "$MQTT_TLS_ENABLED" in
true|1|yes|on)
cp "$CONFIG_DIR/mosquitto-tls.conf" "$RUNTIME_CONF"
;;
*)
cp "$CONFIG_DIR/mosquitto-plain.conf" "$RUNTIME_CONF"
;;
esac
exec mosquitto -c "$RUNTIME_CONF"