entrypoint fix

This commit is contained in:
Logan
2026-04-11 15:48:28 -04:00
parent 7b0e09a8ef
commit 8766680074
+2 -1
View File
@@ -24,7 +24,8 @@ if [ -z "$MQTT_NODE_USER" ] || [ -z "$MQTT_NODE_PASS" ]; then
exit 1 exit 1
fi fi
mosquitto_passwd -b "$PASSWD_FILE" "$MQTT_C2_USER" "$MQTT_C2_PASS" # -c creates/overwrites the file; subsequent calls append without -c
mosquitto_passwd -c -b "$PASSWD_FILE" "$MQTT_C2_USER" "$MQTT_C2_PASS"
mosquitto_passwd -b "$PASSWD_FILE" "$MQTT_NODE_USER" "$MQTT_NODE_PASS" mosquitto_passwd -b "$PASSWD_FILE" "$MQTT_NODE_USER" "$MQTT_NODE_PASS"
echo "Mosquitto: password file written for users: $MQTT_C2_USER, $MQTT_NODE_USER" echo "Mosquitto: password file written for users: $MQTT_C2_USER, $MQTT_NODE_USER"