~cjwatson/storm/py3-reraise-fix

« back to all changes in this revision

Viewing changes to dev/db-setup

  • Committer: David Britton
  • Date: 2011-12-08 14:36:50 UTC
  • mto: This revision was merged to the branch mainline in revision 426.
  • Revision ID: dpb@canonical.com-20111208143650-jtv281762c1zq10h
Adding some dev setup scripts.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/bin/bash -eu
 
2
 
 
3
# Postgres
 
4
echo "* Fixing localhost access to postgres"
 
5
sed -i.bak -r 's/(host.*127\.0\.0\.1.*)\s+\w+$/\1 ident/' /etc/postgresql/*/main/pg_hba.conf
 
6
sed -i.bak -r 's/(host::1/128.*)\s+\w+$/\1 ident/' /etc/postgresql/*/main/pg_hba.conf
 
7
 
 
8
 
 
9