Browse Source

mq password config fix

Abhishek Kondur 2 years ago
parent
commit
451d490800
3 changed files with 3 additions and 3 deletions
  1. 0 1
      docker/mosquitto.conf
  2. 2 2
      docker/wait.sh
  3. 1 0
      scripts/nm-quick-interactive.sh

+ 0 - 1
docker/mosquitto.conf

@@ -7,5 +7,4 @@ listener 1883
 protocol websockets
 allow_anonymous false
 
-allow_anonymous false
 password_file /mosquitto/password.txt

+ 2 - 2
docker/wait.sh

@@ -1,8 +1,8 @@
 #!/bin/ash
 
 encrypt_password() {
-  echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/passwords.txt
-  mosquitto_passwd -U /mosquitto/passwords.txt
+  echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/password.txt
+  mosquitto_passwd -U /mosquitto/password.txt
 }
 
 main(){

+ 1 - 0
scripts/nm-quick-interactive.sh

@@ -297,6 +297,7 @@ select domain_option in "Auto Generated Password" "Input Your Own Password"; do
             echo "wrong password entered, try again..."
             continue
         fi
+		MQ_PASSWORD="$GET_MQ_PASSWORD"
         echo "MQ Password Saved Successfully!!"
         break
     done