X-Original-To: pgsql-general-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id D8C355E37D0 for ; Wed, 18 Aug 2004 03:36:13 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 28440-04 for ; Wed, 18 Aug 2004 06:36:06 +0000 (GMT) Received: from mta2.rdslink.ro (mta2.rdslink.ro [193.231.236.124]) by svr1.postgresql.org (Postfix) with ESMTP id 65A605E37CB for ; Wed, 18 Aug 2004 03:36:04 -0300 (ADT) Received: (qmail 25920 invoked from network); 18 Aug 2004 09:29:51 -0000 Received: from unknown (HELO mail.rdslink.ro) (193.231.236.20) by mta2.rdslink.ro with DES-CBC3-SHA encrypted SMTP; 18 Aug 2004 09:29:51 -0000 Received: (qmail 10181 invoked from network); 18 Aug 2004 06:35:08 -0000 Received: from unknown (HELO ?81.196.83.211?) (81.196.83.211) by mail.rdslink.ro with SMTP; 18 Aug 2004 06:35:08 -0000 Subject: Re: [HACKERS] [ADMIN] SRPM for 8.0.0 beta? From: Marius Andreiana To: Joe Conway , pgsql-general In-Reply-To: <4122CCBE.6040505@joeconway.com> References: <1092514982.19562.15.camel@voyager.localdomain> <411EFB9C.1090804@joeconway.com> <41210FE2.4020202@joeconway.com> <41226B6D.60503@joeconway.com> <17326.1092799454@sss.pgh.pa.us> <4122CCBE.6040505@joeconway.com> Content-Type: text/plain Organization: Galuna S.R.L. Date: Wed, 18 Aug 2004 09:44:39 +0300 Message-Id: <1092811480.2644.9.camel@marte.biciclete.ro> Mime-Version: 1.0 X-Mailer: Evolution 1.5.9.1 (1.5.9.1-2) Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.0 tagged_above=0.0 required=5.0 tests= X-Spam-Level: X-Archive-Number: 200408/763 X-Sequence-Number: 64318 On Tue, 2004-08-17 at 20:27 -0700, Joe Conway wrote: > My own. I missed changing this line: > if [ `cat $PGDATA/PG_VERSION` != '7.4' ] > to this: > if [ `cat $PGDATA/PG_VERSION` != '8.0' ] > > That code section gets skipped over in the case that no initdb has yet > been performed, so I didn't notice until I went to restart the server. can't it be made version independent? e.g. something like if [ -f $PGDATA/PG_VERSION ] ... -- Marius Andreiana Galuna - Solutii Linux in Romania http://www.galuna.ro