From 5408c46c46fe414e384515ee123960560a4e6460 Mon Sep 17 00:00:00 2001 From: lissav Date: Sun, 7 Oct 2012 12:35:04 +0000 Subject: [PATCH] build init.d/postgresql correct Former-commit-id: 1db4368fa7637d72164a2f4ab14e24e71698bee4 --- postgres91/postgresql-9.1.spec | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/postgres91/postgresql-9.1.spec b/postgres91/postgresql-9.1.spec index 337afc5..2d8eddc 100644 --- a/postgres91/postgresql-9.1.spec +++ b/postgres91/postgresql-9.1.spec @@ -475,7 +475,10 @@ install -m 755 postgresql-check-db-dir $RPM_BUILD_ROOT%{_bindir}/postgresql-chec #install -m 644 %{SOURCE10} $RPM_BUILD_ROOT%{_unitdir}/postgresql.service install -d $RPM_BUILD_ROOT/etc/rc.d/init.d -sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE11} >postgresql.init +sed 's/^PGVERSION=.*$/PGVERSION=%{version}/' <%{SOURCE11} >postgresql.init.tmp +sed 's/^PGENGINE=.*$/PGENGINE=\/usr\/bin/' postgresql.init.tmp2 +sed 's/^PGDATA=.*$/PGDATA=\/var\/lib\/pgsql\/data/' postgresql.init.tmp3 +sed 's/^PGLOG=.*$/PGLOG=\/var\/lib\/pgsql\/pgstartup.log/' postgresql.init install -m 755 postgresql.init $RPM_BUILD_ROOT/etc/rc.d/init.d/postgresql %if %pam