SPECS: postgresql.spec - do PG_VERSION comparision in %pretrans
glen
glen at pld-linux.org
Wed Mar 19 14:54:57 CET 2008
Author: glen Date: Wed Mar 19 13:54:57 2008 GMT
Module: SPECS Tag: HEAD
---- Log message:
- do PG_VERSION comparision in %pretrans
---- Files affected:
SPECS:
postgresql.spec (1.402 -> 1.403)
---- Diffs:
================================================================
Index: SPECS/postgresql.spec
diff -u SPECS/postgresql.spec:1.402 SPECS/postgresql.spec:1.403
--- SPECS/postgresql.spec:1.402 Wed Mar 19 14:50:53 2008
+++ SPECS/postgresql.spec Wed Mar 19 14:54:52 2008
@@ -854,7 +854,7 @@
%clean
rm -rf $RPM_BUILD_ROOT
-%pre
+%pretrans
PG_DB_CLUSTERS=""
if [ -f /etc/sysconfig/postgresql ]; then
. /etc/sysconfig/postgresql
@@ -865,7 +865,7 @@
foundold=0
for pgdir in $PG_DB_CLUSTERS; do
if [ -f $pgdir/PG_VERSION ]; then
- if [ `cat $pgdir/PG_VERSION` != '8.3' ]; then
+ if [ $(cat $pgdir/PG_VERSION) != '8.3' ]; then
echo "Found database(s) in older, incompatible format in cluster $pgdir."
foundold=1
fi
@@ -889,6 +889,7 @@
exit 1
fi
+%pre
%groupadd -g 88 -r postgres
%useradd -M -o -r -u 88 -d /home/services/postgres -s /bin/sh -g postgres -c "PostgreSQL Server" postgres
@@ -1160,6 +1161,9 @@
All persons listed below can be reached at <cvs_login>@pld-linux.org
$Log$
+Revision 1.403 2008-03-19 13:54:52 glen
+- do PG_VERSION comparision in %pretrans
+
Revision 1.402 2008-03-19 13:50:53 glen
- 8.3.1 tarball (pg_ctl-fix needs update)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/SPECS/postgresql.spec?r1=1.402&r2=1.403&f=u
More information about the pld-cvs-commit
mailing list