mirror of
https://github.com/aljazceru/addons.git
synced 2025-12-18 13:44:20 +01:00
fix anonoumus login (#15)
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "Mosquitto broker",
|
||||
"version": "0.2",
|
||||
"version": "0.3",
|
||||
"slug": "mosquitto",
|
||||
"description": "An Open Source MQTT broker",
|
||||
"startup": "before",
|
||||
|
||||
@@ -14,4 +14,4 @@ persistence_location /data/
|
||||
##
|
||||
# User settings
|
||||
#password_file /data/users.db
|
||||
#allow_anonymous true
|
||||
#allow_anonymous false
|
||||
|
||||
@@ -33,7 +33,7 @@ if [ "$SSL" == "true" ]; then
|
||||
fi
|
||||
|
||||
# Allow anonymous connections
|
||||
if [ "$ANONYMOUS" == "true" ]; then
|
||||
if [ "$ANONYMOUS" == "false" ]; then
|
||||
sed -i "s/#allow_anonymous/allow_anonymous/g" /etc/mosquitto.conf
|
||||
fi
|
||||
|
||||
|
||||
Reference in New Issue
Block a user