Revert "Another merge ?"

This reverts commit c5bbb22553.
This commit is contained in:
2025-12-29 18:06:32 +01:00
parent c5bbb22553
commit ac2550a8a7
3 changed files with 64 additions and 0 deletions

View File

@@ -0,0 +1,18 @@
#!/bin/sh
PASSWORD_FILE=/mosquitto/config/passwords
echo "Creating password file with pre-registered users..."
if [ ! -f "$PASSWORD_FILE" ]; then
touch "$PASSWORD_FILE"
chmod 600 "$PASSWORD_FILE"
# Add pre-registered users
mosquitto_passwd -b "$PASSWORD_FILE" board-mate-api hepl
echo "Password file created !"
else
echo "Password file exists, skipping this step"
fi
echo "Starting mosquitto..."
exec mosquitto -c /mosquitto/config/mosquitto.conf -v