making a PRE_INSTALL

Dennis Veatch dveatch at woh.rr.com
Wed Aug 3 09:20:41 UTC 2005


I've made one for postgresql but a lin doesn't pick it up. The contents are 
pretty straight forward;

if [ -f /var/lib/pgsql/data/PG_VERSION ]
        then
         if [ `cat /var/lib/pgsql/data/PG_VERSION` != '8.0' ]
         then
          printf "A pre 8.0 version of the database was found."\n "You need to 
upgrade the data format to 8.0".\n"The install will not continue"\n
        exit 1
        fi
        fi


Is there something I'm overlooking here?


More information about the Lunar mailing list