X-Git-Url: https://git.cyclocoop.org/?p=lhc%2Fateliers.git;a=blobdiff_plain;f=etc%2Fsv%2Fpostgres%2Fconfigure.sh;h=6bb2b1d095a944abe95412aeb91af1f0ef9632bb;hp=db32e16848b9a9ae9d151cd8e71e1dfb7e91a0ad;hb=22f04b9fac14adc3d3fc98273ba126c3a51792c3;hpb=5ce6d51b9c15b2e316d60fad4ecfa1ea1b32bf7b diff --git a/etc/sv/postgres/configure.sh b/etc/sv/postgres/configure.sh index db32e16..6bb2b1d 100644 --- a/etc/sv/postgres/configure.sh +++ b/etc/sv/postgres/configure.sh @@ -1,6 +1,6 @@ # DOC: http://wiki.postgresql.org/wiki/Shared_Database_Hosting -rule apt_get_install postgresql-9.1 +#rule apt_get_install postgresql-9.1 rule insserv_remove postgresql rule adduser postgres \ --disabled-login \ @@ -50,13 +50,15 @@ sudo install -m 640 -o postgres -g postgres /dev/stdin \ 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 + local all postgres peer map=admin local all all peer EOF sudo install -m 640 -o postgres -g postgres-data \ @@ -69,7 +71,7 @@ sudo find "$tool"/etc/postgresql/bin/ -type f -perm /+x -exec \ sudo ln -fns \ ../sv/"$sv" \ /etc/service/"$sv" -rule runit_sv_start "$sv" +rule _runit_sv_start "$sv" while ! sudo -u postgres psql