From: Chris Koeritz Date: Mon, 18 Dec 2017 21:12:38 +0000 (-0500) Subject: disable echo during password entry X-Git-Tag: 2.140.106^2~3^2~1 X-Git-Url: https://feistymeow.org/gitweb/?a=commitdiff_plain;h=03eff8506f53db7e72630835a9a4d83ebd82c1dd;p=feisty_meow.git disable echo during password entry --- diff --git a/scripts/site_avenger/revamp_cakelampvm.sh b/scripts/site_avenger/revamp_cakelampvm.sh index 37440de3..9fff4c0f 100644 --- a/scripts/site_avenger/revamp_cakelampvm.sh +++ b/scripts/site_avenger/revamp_cakelampvm.sh @@ -22,7 +22,12 @@ source "$FEISTY_MEOW_SCRIPTS/system/common_sysadmin.sh" # new requirement is to get the sql root password, since we need to do some sql db configuration. echo -n "Please enter the MySQL root account password: " +# turn off echo but remember former setting. +stty_orig=`stty -g` +stty -echo read mysql_passwd +# turn echo back on. +stty $stty_orig if [ -z "$mysql_passwd" ]; then echo "This script must have the sql root password to proceed." exit 1