From cd70ac3bf3f98e4e525db531d23b477899fd184d Mon Sep 17 00:00:00 2001 From: Sthope Date: Sat, 23 Apr 2022 22:04:01 +0200 Subject: [PATCH] first commit --- docs/portainer-stacks/MQTT-Mosquitto.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/portainer-stacks/MQTT-Mosquitto.md b/docs/portainer-stacks/MQTT-Mosquitto.md index dff6ffe..f47ffc3 100644 --- a/docs/portainer-stacks/MQTT-Mosquitto.md +++ b/docs/portainer-stacks/MQTT-Mosquitto.md @@ -40,8 +40,14 @@ password_file /mosquitto/config/passwd ``` Create empty file `/mosquitto/config/passwd` -And from the terminal create user sending: -```docker exec -it mqtt usr/bin/mosquitto_passwd -c /mosquitto/config/passwd USERNAME``` +And from the terminal create user sending: + +``` +docker exec -it mqtt usr/bin/mosquitto_passwd -c /mosquitto/config/passwd USERNAME +``` And if you want to add more users use: -```docker exec -it mqtt usr/bin/mosquitto_passwd -b /mosquitto/config/passwd NEW_USERNAME PASSWORD``` + +``` +docker exec -it mqtt usr/bin/mosquitto_passwd -b /mosquitto/config/passwd NEW_USERNAME PASSWORD +```