2
0
mirror of https://github.com/frappe/bench.git synced 2025-01-09 08:30:39 +00:00

fix garbage mysql passord in easy install script

This commit is contained in:
Pratik Vyas 2014-07-21 16:24:34 +05:30
parent c2abf2b8b4
commit b94d03948e

View File

@ -116,7 +116,8 @@ configure_mariadb_centos() {
# Required only for CentOS, Ubuntu and Debian will show dpkg configure screen to set the password # Required only for CentOS, Ubuntu and Debian will show dpkg configure screen to set the password
if [ $OS == "centos" ]; then if [ $OS == "centos" ]; then
echo Enter mysql root password to set: echo Enter mysql root password to set:
read -s MSQ_PASS read -t 1 -n 10000 discard
read -p "Enter mysql root password to set:" -s MSQ_PASS
mysqladmin -u root password $MSQ_PASS mysqladmin -u root password $MSQ_PASS
fi fi
} }