testdouble/heroku-buildpack-lineman — pull request #10 by ndelage (2014-01-06 18:51:58+00:00)
Title: Run htpasswd only if $USERNAME & $PASSWORD are set

If you don't set $USERNAME and $PASSWORD you'll see this output when deploying using the lineman build pack:

```
2014-01-06T18:27:43.719560+00:00 app[web.1]:
2014-01-06T18:27:43.719560+00:00 app[web.1]:	htpasswd -n[mdps] username
2014-01-06T18:27:43.719560+00:00 app[web.1]: Usage:
2014-01-06T18:27:43.719560+00:00 app[web.1]:	htpasswd [-cmdpsD] passwordfile username
2014-01-06T18:27:43.719560+00:00 app[web.1]:	htpasswd -b[cmdpsD] passwordfile username password
2014-01-06T18:27:43.719560+00:00 app[web.1]:	htpasswd -nb[mdps] username password
2014-01-06T18:27:43.719560+00:00 app[web.1]: -c Create a new file.
2014-01-06T18:27:43.719560+00:00 app[web.1]: -n Don't update file; display results on stdout.
2014-01-06T18:27:43.719560+00:00 app[web.1]: -m Force MD5 encryption of the password (default).
2014-01-06T18:27:43.719560+00:00 app[web.1]: -d Force CRYPT encryption of the password.
2014-01-06T18:27:43.719741+00:00 app[web.1]: -p Do not encrypt the password (plaintext).
2014-01-06T18:27:43.719741+00:00 app[web.1]: -s Force SHA encryption of the password.
2014-01-06T18:27:43.719741+00:00 app[web.1]: -b Use the password from the command line rather than prompting for it.
2014-01-06T18:27:43.719741+00:00 app[web.1]: -D Delete the specified user.
2014-01-06T18:27:43.719741+00:00 app[web.1]: On other systems than Windows, NetWare and TPF the '-p' flag will probably not work.
2014-01-06T18:27:43.719741+00:00 app[web.1]: The SHA algorithm does not use a salt and is less secure than the MD5 algorithm.
```

This is because the `boot.sh` unconditionally runs `/app/apache/bin/htpasswd`:

```
cat >>boot.sh <