rtCamp/easyengine — pull request #281 by thewebists (2014-07-04 18:27:08+00:00)
Title: Optionally load MySQL root password from .my.cnf

I'm working on using EasyEngine in Vagrant and would really like to have the option of specifying the MySQL root password, or reusing the one from a previous EE installation by pulling it from the ~/.my.cnf file.

Note that the snippet of code used to get the user and password from the file is taken from another part of EE, but I've noticed that it also cuts leading spaces, which can lead to a situation where the password is configured as " password".

Maybe you could add a trim function somewhere in EE and use it on the ee_password variable.