Andreas Vöst
2 months
Stefan Langenmaier
1 year
Claus-Theodor Riegg
1 year
Claus-Theodor Riegg
4 years
Claus-Theodor Riegg
7 years
Claus-Theodor Riegg
8 years

Manually create Postgres password hash

Posted . Visible to the public. Repeats.

For some reason you have to pass the password hash if you want to create a role in postgres. To calculate the hash use the following snippet:

echo -n "md5"; echo -n "${PG_PASSWORD}${PG_USERNAME}" | md5sum | awk '{print $1}'
Stefan Langenmaier
Last edit
Kim Klotz
License
Source code in this card is licensed under the MIT License.