X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fpostgres%2Flocal.sh;h=9e97c8ac3755363b2ab8aa1d6b5ff7866ba81758;hp=8b784c1caf57a6d6674934defd2732d680416665;hb=e2ae547ef85e29f3f9c9dfe31feffdac2653df06;hpb=d210d4efb0016a3ea2425af9f601bfe908161499 diff --git a/etc/sv/postgres/local.sh b/etc/sv/postgres/local.sh index 8b784c1..9e97c8a 100644 --- a/etc/sv/postgres/local.sh +++ b/etc/sv/postgres/local.sh @@ -44,21 +44,15 @@ sudo install -m 640 -o postgres -g postgres /dev/stdin \ /etc/postgresql/9.1/main/pg_ctl.conf <<-EOF pg_ctl_options = '' EOF -sudo install -m 640 -o postgres -g postgres /dev/stdin \ - /etc/postgresql/9.1/main/pg_ident.conf <<-EOF - # MAPNAME SYSTEM-USERNAME PG-USERNAME - admin postgres postgres - admin root postgres - EOF sudo install -m 640 -o postgres -g postgres /dev/stdin \ /etc/postgresql/9.1/main/start.conf <<-EOF EOF -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 sudo install -m 640 -o postgres -g postgres-data \ "$tool"/etc/postgresql/9.1/main/postgresql.conf \ /etc/postgresql/9.1/main/postgresql.conf