POSIX read -s fix
parent
a7c4c23235
commit
89313a3e89
|
@ -4,7 +4,7 @@ cp mysqlbackup /usr/local/bin/
|
|||
chmod 755 /usr/local/bin/mysqlbackup
|
||||
|
||||
if [ ! -f /root/.my.cnf ]; then
|
||||
read -s -p "Enter the root MySQL Password: " MYSQL_PASS;
|
||||
echo -n "Enter the root MySQL Password: " && stty -echo && read MYSQL_PASS && echo ""
|
||||
cat <<EOF >> /tmp/.my.cfg
|
||||
[client]
|
||||
user=root
|
||||
|
|
Loading…
Reference in New Issue