[Lunar-commits] <moonbase> postgresql: fix the install bug pointed by Richard Pyne.

Florin Braescu florin at lunar-linux.org
Fri Nov 28 16:06:13 CET 2008


commit bc6e78ce8cc01e203719216ac90d766945f33368
Author: Florin Braescu <florin at lunar-linux.org>
Date:   Fri Nov 28 17:06:13 2008 +0200

    postgresql: fix the install bug pointed by Richard Pyne.
---
 sql/postgresql/CONFIGURE |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/sql/postgresql/CONFIGURE b/sql/postgresql/CONFIGURE
old mode 100755
new mode 100644
index edbe42d..6b30cfd
--- a/sql/postgresql/CONFIGURE
+++ b/sql/postgresql/CONFIGURE
@@ -1,10 +1,10 @@
 
  if [ -f /var/lib/pgsql/data/PG_VERSION ]
     then
- if [ `cat /var/lib/pgsql/data/PG_VERSION` != '8.3' ]
-    then
-    printf "${PROBLEM_COLOR}A pre 8.3 version of the database was found.\nYou need to upgrade the data format to 8.3.\nRefer to the INSTALL file located in the tarball\nfor the upgrade procedure.\nThe install will not continue.""${DEFAULT_COLOR}"
-   exit 1
-   fi
+    if [ `cut -d. -f1-2 /var/lib/pgsql/data/PG_VERSION` != '8.3' ]
+       then
+       printf "${PROBLEM_COLOR}A pre 8.3 version of the database was found.\nYou need to upgrade the data format to 8.3.\nRefer to the INSTALL file located in the tarball\nfor the upgrade procedure.\nThe install will not continue.""${DEFAULT_COLOR}"
+      exit 1
+    fi
  fi
 


More information about the Lunar-commits mailing list