Skip to content

Commit 700bbac

Browse files
committed
fixed path in mosquitto/bin/mkuser.sh
1 parent 2a8094d commit 700bbac

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

apps/mosquitto/bin/mkuser.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ echo
2525
echo "Only usable from within a hackstack container. To use externally, replace 'mosquitto' with the name or IP address or name of this server"
2626

2727
echo "creating user:"
28-
CMD="docker compose -f ../docker-compose.yml exec mosquitto mosquitto_passwd -b /mosquitto/config/mos_passwd ${USER} ${PASSWORD}"
28+
CMD="docker compose -f ../docker-compose.yml exec mosquitto mosquitto_passwd -b /mosquitto/data/mos_passwd ${USER} ${PASSWORD}"
2929
echo " ${CMD}"
3030
if $CMD ; then
3131
echo "successful"

apps/mosquitto/docker-compose.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,11 @@ services:
1515
- .env
1616
# Auth broker: use MOSQUITTO_HEALTHCHECK_* from .env (must match mos_passwd; needs $SYS read in ACLs if you use acl_file).
1717
healthcheck:
18+
# 'mosquitto_sub -h localhost -p 1883 -u "$$MOSQUITTO_HEALTHCHECK_USERNAME" -P "$$MOSQUITTO_HEALTHCHECK_PASSWORD" -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1',
1819
test:
1920
[
2021
"CMD-SHELL",
21-
'mosquitto_sub -h localhost -p 1883 -u "$$MOSQUITTO_HEALTHCHECK_USERNAME" -P "$$MOSQUITTO_HEALTHCHECK_PASSWORD" -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1',
22+
'mosquitto_sub -h localhost -p 1883 -u "${MOSQUITTO_HEALTHCHECK_USERNAME}" -P "${MOSQUITTO_HEALTHCHECK_PASSWORD}" -t "$$SYS/broker/uptime" -C 1 -W 5 || exit 1',
2223
]
2324
interval: 30s
2425
timeout: 10s

0 commit comments

Comments
 (0)