Rooooooooooh
This commit is contained in:
@@ -6,8 +6,8 @@ echo "Creating password file with pre-registered users..."
|
|||||||
if [ ! -f "$PASSWORD_FILE" ]; then
|
if [ ! -f "$PASSWORD_FILE" ]; then
|
||||||
touch "$PASSWORD_FILE"
|
touch "$PASSWORD_FILE"
|
||||||
chmod 600 "$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" main hepl
|
||||||
mosquitto_passwd -b "$PASSWORD_FILE" nodered hepl
|
mosquitto_passwd -b "$PASSWORD_FILE" nodered hepl
|
||||||
mosquitto_passwd -b "$PASSWORD_FILE" pi-1 hepl
|
mosquitto_passwd -b "$PASSWORD_FILE" pi-1 hepl
|
||||||
|
|||||||
Reference in New Issue
Block a user