mirror of
https://github.com/gravitl/netmaker.git
synced 2025-09-27 05:08:11 +08:00
mq password config fix
This commit is contained in:
@@ -7,5 +7,4 @@ listener 1883
|
|||||||
protocol websockets
|
protocol websockets
|
||||||
allow_anonymous false
|
allow_anonymous false
|
||||||
|
|
||||||
allow_anonymous false
|
|
||||||
password_file /mosquitto/password.txt
|
password_file /mosquitto/password.txt
|
||||||
|
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/ash
|
#!/bin/ash
|
||||||
|
|
||||||
encrypt_password() {
|
encrypt_password() {
|
||||||
echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/passwords.txt
|
echo "${MQ_USERNAME}:${MQ_PASSWORD}" > /mosquitto/password.txt
|
||||||
mosquitto_passwd -U /mosquitto/passwords.txt
|
mosquitto_passwd -U /mosquitto/password.txt
|
||||||
}
|
}
|
||||||
|
|
||||||
main(){
|
main(){
|
||||||
|
@@ -297,6 +297,7 @@ select domain_option in "Auto Generated Password" "Input Your Own Password"; do
|
|||||||
echo "wrong password entered, try again..."
|
echo "wrong password entered, try again..."
|
||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
MQ_PASSWORD="$GET_MQ_PASSWORD"
|
||||||
echo "MQ Password Saved Successfully!!"
|
echo "MQ Password Saved Successfully!!"
|
||||||
break
|
break
|
||||||
done
|
done
|
||||||
|
Reference in New Issue
Block a user