[Pkg-postgresql-private] (forw) Re: Bug#210428: postgresql: subprocess post-installation script returned error exit status 2

Andreas Schuldei andreas@schuldei.org
Mon, 20 Oct 2003 17:11:36 +0200


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

so i guess this patch works just all right.

i will make the same fix in cvs.

--HcAYCG3uE/tztfnV
Content-Type: message/rfc822
Content-Disposition: inline

Return-Path: <cy@netlabs.org>
X-Original-To: andreas@schuldei.org
Delivered-To: andreas@schuldei.org
Received: from netfinity.netlabs.org (netfinity.netlabs.org [212.12.41.77])
	by petrus.schuldei.org (Postfix) with ESMTP id C5977FB956
	for <andreas@schuldei.org>; Mon, 20 Oct 2003 15:41:40 +0200 (CEST)
Received: from localhost (dclient217-162-101-233.hispeed.ch [217.162.101.233])
  by netfinity.netlabs.org (Weasel v1.63) for <andreas@schuldei.org>; 
 20 Oct 2003 15:41:38 
Date: Mon, 20 Oct 2003 15:41:29 +0200
From: Yann Calderara <cy@netlabs.org>
To: Andreas Schuldei <andreas@schuldei.org>
Subject: Re: Bug#210428: postgresql: subprocess post-installation script
 returned error exit status 2
Message-Id: <20031020154129.39783c30.cy@netlabs.org>
In-Reply-To: <20031019200634.GB920@lukas.schuldei.com>
References: <E19xRQM-0002De-00@localhost>
	<20031015185341.GB22410@lukas.schuldei.com>
	<20031017180430.2e80bc2d.cy@netlabs.org>
	<20031019200634.GB920@lukas.schuldei.com>
X-Mailer: Sylpheed version 0.9.6claws (GTK+ 1.2.10; i386-pc-linux-gnu)
Mime-Version: 1.0
Content-Type: multipart/signed; protocol="application/pgp-signature";
 micalg="pgp-sha1";
 boundary="Signature=_Mon__20_Oct_2003_15_41_29_+0200_QhlNI01xMPPBQzu."
X-Spam-Status: No, hits=-7.8 required=5.0
	tests=BAYES_10,EMAIL_ATTRIBUTION,IN_REP_TO,PGP_SIGNATURE_2,
	      REFERENCES,REPLY_WITH_QUOTES
	autolearn=ham version=2.55
X-Spam-Level: 
X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp)

--Signature=_Mon__20_Oct_2003_15_41_29_+0200_QhlNI01xMPPBQzu.
Content-Type: text/plain; charset=US-ASCII
Content-Disposition: inline
Content-Transfer-Encoding: 7bit

On Sun, 19 Oct 2003 22:06:37 +0200
Andreas Schuldei <andreas@schuldei.org> wrote:

> * Yann Calderara (cy@netlabs.org) [031017 18:05]:
> > sure, just send me that package
> > regards
> 
> ok, it installs and runs just fine here. 
> 
> tell me if it works.
> 

no problems with the installation, it looks good


___________________________
Yann Calderara <cy@netlabs.org>
OpenPGP: 8E31751C / 26EA EDA3 1671 CCCF 815D 89A4 307D 4B8E 8E31 751C


--Signature=_Mon__20_Oct_2003_15_41_29_+0200_QhlNI01xMPPBQzu.
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.3 (GNU/Linux)

iD8DBQE/k+YSMH1Ljo4xdRwRAg2wAJsEqAAHcorz16yn1hEQx371VPza8wCfdB35
zSJp/ZBIu8mYw7BTLJPcMzE=
=mdLJ
-----END PGP SIGNATURE-----

--Signature=_Mon__20_Oct_2003_15_41_29_+0200_QhlNI01xMPPBQzu.--


--HcAYCG3uE/tztfnV
Content-Type: text/plain; charset=us-ascii
Content-Disposition: attachment; filename=fix-210428

diff -Nur postgresql-7.3.4/debian/changelog postgresql-fix/debian/changelog
--- postgresql-7.3.4/debian/changelog	2003-10-15 12:24:03.000000000 +0200
+++ postgresql-fix/debian/changelog	2003-10-20 17:08:53.000000000 +0200
@@ -1,3 +1,10 @@
+postgresql (7.3.4-9) unstable; urgency=low
+
+  * calling the temporal script for database dumping differently.
+    Closes: #210428
+
+ -- Andreas Schuldei <andreas@debian.org>  Mon, 20 Oct 2003 17:07:26 +0200
+
 postgresql (7.3.4-8) unstable; urgency=low
 
   * Fix bug in converting pg_hba.conf from the old form during postinst
diff -Nur postgresql-7.3.4/debian/postinst.in postgresql-fix/debian/postinst.in
--- postgresql-7.3.4/debian/postinst.in	2003-10-13 04:20:50.000000000 +0200
+++ postgresql-fix/debian/postinst.in	2003-10-19 21:38:30.000000000 +0200
@@ -169,7 +169,7 @@
 esac
 
 SCRIPTFILE=`mktemp ${TMPDIR:=/tmp}/pg.XXXXXX` || exit 1
-chmod a+rwx $SCRIPTFILE
+chmod a+rw $SCRIPTFILE
 TMPFILE=`mktemp $TMPDIR/pg.XXXXXX` || exit 1
 chmod a+rw $TMPFILE
 MAILFILE=`mktemp $TMPDIR/pg.XXXXXX` || exit 1
@@ -403,8 +403,7 @@
 initdb --encoding ${ENCODING} --pgdata ${PGDATA}
 EOI
 
-    chmod a+x $SCRIPTFILE
-    /sbin/start-stop-daemon --chuid postgres --name `basename $SCRIPTFILE` --startas $SCRIPTFILE --start
+    /sbin/start-stop-daemon --chuid postgres --name `basename $SCRIPTFILE` --start --startas /bin/sh -- $SCRIPTFILE
 
     echo "
 A new PostgreSQL database structure was installed.

--HcAYCG3uE/tztfnV--