From 20fd996aae7fb296e32618ae6cc18a5280ce8ee6 Mon Sep 17 00:00:00 2001 From: abhishek9686 Date: Wed, 6 Nov 2024 11:17:03 +0400 Subject: [PATCH] remove passwd prompt for mq --- scripts/nm-quick.sh | 45 ++------------------------------------------- 1 file changed, 2 insertions(+), 43 deletions(-) diff --git a/scripts/nm-quick.sh b/scripts/nm-quick.sh index 8c11769f7..0cc87cf7b 100755 --- a/scripts/nm-quick.sh +++ b/scripts/nm-quick.sh @@ -593,52 +593,11 @@ set_install_vars() { done fi wait_seconds 1 - unset GET_MQ_USERNAME - unset GET_MQ_PASSWORD - unset CONFIRM_MQ_PASSWORD - echo "Enter Credentials For MQ..." - - read -p "MQ Username (click 'enter' to use 'netmaker'): " GET_MQ_USERNAME - if [ -z "$GET_MQ_USERNAME" ]; then - echo "using default username for mq" - MQ_USERNAME="netmaker" - else - MQ_USERNAME="$GET_MQ_USERNAME" - fi - - if test -z "$MQ_PASSWORD"; then - MQ_PASSWORD=$( + MQ_USERNAME="netmaker" + MQ_PASSWORD=$( tr -dc A-Za-z0-9