Skip to content

Commit

Permalink
Hide root password at desinstallation step
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocobozzz committed Sep 11, 2016
1 parent 0acf765 commit 568bae0
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions desinstall.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,7 @@ mysql_root_pass=""
status_code=1

while [ $status_code -ne 0 ]; do
echo -n "Server MySQL root password: "
read mysql_root_pass
read -p "MySQL root password: " -s mysql_root_pass; echo
echo "SHOW DATABASES" | mysql -u root --password="$mysql_root_pass" &> /dev/null
status_code=$?
done
Expand Down

0 comments on commit 568bae0

Please sign in to comment.