-sudo install -m 640 -o postgres -g postgres /dev/stdin \
- /etc/postgresql/9.1/main/pg_hba.conf <<-EOF
- local all postgres peer map=admin
- local all all peer
- hostssl all postgres samehost cert
- EOF
+sudo install -m 640 -o postgres -g postgres \
+ "$tool"/etc/postgresql/9.1/main/pg_ident.conf \
+ /etc/postgresql/9.1/main/pg_ident.conf
+sudo install -m 640 -o postgres -g postgres \
+ "$tool"/etc/postgresql/9.1/main/pg_hba.conf \
+ /etc/postgresql/9.1/main/pg_hba.conf