# Clean up the passwd file
PASSWD_FILE="/mosquitto/config/passwd"
echo -n "" > $PASSWD_FILE
chmod 0700 $PASSWD_FILE
chown mosquitto:mosquitto $PASSWD_FILE

# Add the user
/usr/bin/mosquitto_passwd -b $PASSWD_FILE $MQTT_USERNAME $MQTT_PASSWORD


/usr/sbin/mosquitto -c /mosquitto/config/mosquitto.conf -v
