]> git.pld-linux.org Git - packages/postgresql.git/commitdiff
- s/7\.1/7.2/ (database format incompatible, upgrade requires dump/restore)
authorJakub Bogusz <qboosh@pld-linux.org>
Mon, 11 Feb 2002 20:43:37 +0000 (20:43 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
- updated removing of stale socket and its lock from /tmp

Changed files:
    postgresql.init -> 1.31

postgresql.init

index b0358657bf4db8d64ab89d8cafb75830534c0605..3e1a13b878537ced47d01a0641f6a78c0ba2f331 100644 (file)
@@ -69,12 +69,13 @@ case "$1" in
                fi
                
                # Sanity check
-               [ -f /tmp/.s.PGSQL.5432 ] || rm -f /tmp/.s.PGSQL.5432
+               [ -e /tmp/.s.PGSQL.5432 ] || rm -f /tmp/.s.PGSQL.5432
+               [ -f /tmp/.s.PGSQL.5432.lock ] || rm -f /tmp/.s.PGSQL.5432.lock
                
                # Check for the PGDATA structure
                if [ -f $POSTGRES_DATA_DIR/PG_VERSION ] && [ -f $POSTGRES_DATA_DIR/global/pg_control ]; then
                    # Check version of existing PGDATA
-                   if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.1' ]; then
+                   if [ `cat $POSTGRES_DATA_DIR/PG_VERSION` != '7.2' ]; then
                        show "Databases created under incompatibile version. Migrate them first."; fail
                        exit 1
                    fi
This page took 0.46716 seconds and 4 git commands to generate.