Lines 49-55
Link Here
|
49 |
if [ -f ${PG_DIR}/data/PG_VERSION ] ; then |
49 |
if [ -f ${PG_DIR}/data/PG_VERSION ] ; then |
50 |
PG_MAJOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f1 -d.` |
50 |
PG_MAJOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f1 -d.` |
51 |
PG_MINOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f2 -d.` |
51 |
PG_MINOR=`cat ${PG_DIR}/data/PG_VERSION | cut -f2 -d.` |
52 |
if [ ${PG_MAJOR} -lt 8 ] || [ ${PG_MAJOR} -eq 8 -a ${PG_MINOR} -lt 0 ] ; then |
52 |
if [ ${PG_MAJOR} -lt 8 ] || [ ${PG_MAJOR} -eq 8 -a ${PG_MINOR} -lt 1 ] ; then |
53 |
eerror "Postgres ${PV} cannot upgrade your existing databases, you must" |
53 |
eerror "Postgres ${PV} cannot upgrade your existing databases, you must" |
54 |
eerror "use pg_dump to export your existing databases to a file, and then" |
54 |
eerror "use pg_dump to export your existing databases to a file, and then" |
55 |
eerror "pg_restore to import them when you have upgraded completely." |
55 |
eerror "pg_restore to import them when you have upgraded completely." |