Last active
August 29, 2015 14:16
-
-
Save rajiteh/34a161282e5ba39701b9 to your computer and use it in GitHub Desktop.
Enable local peer connections for postgresql. (version independent)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/sh | |
echo "local postgres postgres peer" >> /etc/postgresql/$(postgres --version | sed 's/.*\(9\.[0-9]\)\.[0-9]/\1/')/main/pg_hba.conf |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment