From 7d1156fe9ce11e8ec25efa3c88871bcad728fda0 Mon Sep 17 00:00:00 2001 From: Christopher Nethercott Date: Sat, 5 Dec 2020 17:51:35 +0000 Subject: [PATCH] Update README.md --- README.md | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/README.md b/README.md index dc193ce..427fc1c 100644 --- a/README.md +++ b/README.md @@ -94,7 +94,20 @@ $ cd - ``` Then, update the `MQTT_USER` and `MQTT_PASSWORD` constants in all the subdirectories, and launch docker compose again. +### Alternative way to update credentials +This requires installation of the `mosquitto` packages; the following command works for Ubuntu: +```sh +sudo apt install mosquitto mosquitto-clients +``` +Then run either: (you'll be prompted for a password) +```sh +mosquitto_password -c $USER +``` +or +```sh +mosquitto_password -b $USER $PASSWORD +``` ## Alternative: Using docker manually instead of docker compose