mitchellwrosen/snowdrift — pull request #4 by wolftune (2014-07-07 23:34:15+00:00)
Title: Init script issues, minor fixes, more needed

Hi Mitchell,

As this PR includes, the postgresql.template file needs to match the password set in the scripts, of course.

Otherwise, I find the scripts a little odd and would like you to consider adjusting them.

The reset-db script changes the password. I couldn't tell if you did that as some sort of hack to assure that the script would work. With our current manual instructions, there is no need to reset the password or anything else about the database user when resetting the databases.

Ideally, the password should be set on initial init, and if the person chooses an alternate password, they should not have to change it and reset their .yml file every time they reset the database.

So, ideally adjust things so that the init sets everything up and the resets are only the minimal needed to update to match the new devDB and testDB files and not alter the users at all.