summaryrefslogtreecommitdiffstats
path: root/postgresql.init
diff options
context:
space:
mode:
Diffstat (limited to 'postgresql.init')
-rw-r--r--postgresql.init21
1 files changed, 16 insertions, 5 deletions
diff --git a/postgresql.init b/postgresql.init
index 5d198eb..47d9cb5 100644
--- a/postgresql.init
+++ b/postgresql.init
@@ -39,8 +39,11 @@
# sync up.
# Karl's fixes for some quoting issues.
+# Version 7.2b2 Lamar Owen <lamar.owen@wgcr.org>
+# version change.
+
# PGVERSION is:
-PGVERSION=7.1.3
+PGVERSION=7.2
# Source function library.
INITD=/etc/rc.d/init.d
@@ -75,7 +78,7 @@ start(){
then
# Check version of existing PGDATA
- if [ `cat $PGDATA/PG_VERSION` != '7.1' ]
+ if [ `cat $PGDATA/PG_VERSION` != '7.2' ]
then
SYSDOCDIR="(Your System's documentation directory)"
if [ -d /usr/doc/postgresql-$PGVERSION ]
@@ -95,10 +98,17 @@ start(){
SYSDOCDIR=/usr/share/doc/packages
fi
echo
- echo $"An old version of the database format was found."
- echo $"You need to upgrade the data format before using PostgreSQL."
- echo $"See $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
+ echo $"An old version of the database format was found.\nYou need to upgrade the data format before using PostgreSQL.\nSee $SYSDOCDIR/postgresql-$PGVERSION/README.rpm-dist for more information."
exit 1
+# This doesn't seem to do anything useful...
+# else
+# if echo "$TYPESET"|grep "declare -f success ()" >/dev/null
+# then
+# success "$PSQL_CHECK"
+# else
+# echo " [ OK ]"
+# fi
+# echo
fi
# No existing PGDATA! Initdb it.
@@ -223,3 +233,4 @@ esac
exit 0
+