diff --git a/api-customer/mosquitto/config/init-mosquitto.sh b/api-customer/mosquitto/config/init-mosquitto.sh index 2146a6fa..f2c76cc9 100644 --- a/api-customer/mosquitto/config/init-mosquitto.sh +++ b/api-customer/mosquitto/config/init-mosquitto.sh @@ -6,8 +6,8 @@ echo "Creating password file with pre-registered users..." if [ ! -f "$PASSWORD_FILE" ]; then touch "$PASSWORD_FILE" chmod 600 "$PASSWORD_FILE" + chown mosquitto:mosquitto "$PASSWORD_FILE" - # Add pre-registered users mosquitto_passwd -b "$PASSWORD_FILE" main hepl mosquitto_passwd -b "$PASSWORD_FILE" nodered hepl mosquitto_passwd -b "$PASSWORD_FILE" pi-1 hepl