From 3a3143b88784fe7211d164d0c7bcdddfcdcf7b16 Mon Sep 17 00:00:00 2001 From: Pascal Vizeli Date: Sun, 30 Apr 2017 17:55:18 +0200 Subject: [PATCH] Fix mqtt userdb file (#13) * Update run.sh * Update config.json --- mosquitto/config.json | 2 +- mosquitto/run.sh | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) 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)