diff --git a/mosquitto/config.json b/mosquitto/config.json index 30ae24f..096904b 100644 --- a/mosquitto/config.json +++ b/mosquitto/config.json @@ -1,6 +1,6 @@ { "name": "Mosquitto broker", - "version": "0.1", + "version": "0.2", "slug": "mosquitto", "description": "An Open Source MQTT broker", "startup": "before", diff --git a/mosquitto/run.sh b/mosquitto/run.sh index d77865e..53c5fdf 100644 --- a/mosquitto/run.sh +++ b/mosquitto/run.sh @@ -41,6 +41,7 @@ fi if [ "$LOGINS" -gt "0" ]; then sed -i "s/#password_file/password_file/g" /etc/mosquitto.conf rm -f /data/users.db || true + touch /data/users.db for (( i=0; i < "$LOGINS"; i++ )); do USERNAME=$(jq --raw-output ".logins[$i].username" $CONFIG_PATH)