You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
16 lines
446 B
Bash
16 lines
446 B
Bash
#!/usr/bin/env bash
|
|
|
|
set -euo pipefail
|
|
|
|
# shellcheck source=/dev/null
|
|
source "$(dirname "$0")/common.sh"
|
|
|
|
echo "Checking Mosquitto is running..."
|
|
if ! check_port 1883 || ! check_port 9001; then
|
|
echo "Mosquitto port 1883 or 9001 not found running"
|
|
fi
|
|
|
|
echo "Updating ./.mosquitto/passwd plaintext to use hashed passwords"
|
|
docker exec mosquitto mosquitto_passwd -U /etc/mosquitto/passwd
|
|
|
|
echo "Update complete please restart Mosquitto service" |