something is causing the revamp not to show the prompt.
{
prompt="$1"; shift
echo -n "$prompt "
{
prompt="$1"; shift
echo -n "$prompt "
# turn off echo but remember former setting.
stty_orig=`stty -g`
stty -echo
# turn off echo but remember former setting.
stty_orig=`stty -g`
stty -echo
# new requirement to have the sql root password, since we need to do some sql db configuration.
# new requirement to have the sql root password, since we need to do some sql db configuration.
mysql_passwd="$(load_password /etc/mysql/secret_password)"
mysql_passwd="$(load_password /etc/mysql/secret_password)"
if [ -z "$mysql_password" ]; then
if [ -z "$mysql_password" ]; then
mysql_password="$(read_password "Please enter the MySQL root account password:")"
mysql_password="$(read_password "Please enter the MySQL root account password:")"
# echo -n "Please enter the MySQL root account password: "
# # turn off echo but remember former setting.
# stty_orig=`stty -g`
# echo -n "Please enter the MySQL root account password: "
# # turn off echo but remember former setting.
# stty_orig=`stty -g`
# stty $stty_orig
fi
if [ -z "$mysql_passwd" ]; then
# stty $stty_orig
fi
if [ -z "$mysql_passwd" ]; then
echo "This script must have the sql root password to proceed."
exit 1
else
echo "This script must have the sql root password to proceed."
exit 1
else
store_password /etc/mysql/secret_password "$mysql_password"
fi
store_password /etc/mysql/secret_password "$mysql_password"
fi