Skip to content

Instantly share code, notes, and snippets.

@rajiteh
Last active August 29, 2015 14:16
Show Gist options
  • Save rajiteh/34a161282e5ba39701b9 to your computer and use it in GitHub Desktop.
Save rajiteh/34a161282e5ba39701b9 to your computer and use it in GitHub Desktop.
Enable local peer connections for postgresql. (version independent)
#!/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