Permalink
Browse files

better way to allow PostgreSQL connections from localhost

  • Loading branch information...
1 parent 5e7c4bc commit 1a62006bc96b409d39c6535f9aee10f380dbed22 @goldmann goldmann committed Jan 26, 2010
Showing with 2 additions and 1 deletion.
  1. +2 −1 appliances/cirras/management.appl
@@ -17,4 +17,5 @@ post:
base:
- "/sbin/chkconfig postgresql on"
- "/sbin/service postgresql initdb"
- - "/bin/sed -i s/'host all all 127.0.0.1\/32 ident sameuser'/'host all all 127.0.0.1\/32 md5'/g /var/lib/pgsql/data/pg_hba.conf"
+ - "/bin/sed -i s/'^host'/'# host'/g /var/lib/pgsql/data/pg_hba.conf"
+ - "/bin/echo 'host rhq rhq 127.0.0.1/32 md5' >> /var/lib/pgsql/data/pg_hba.conf"

0 comments on commit 1a62006

Please sign in to comment.