We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f425dd2 commit 8a91e43Copy full SHA for 8a91e43
src/pgpro-upgrade/pgpro_upgrade
@@ -32,6 +32,10 @@ CATALOG_VERSION_NO=2016081311
32
MAJORVER=9.6
33
CATVER=`${PGBIN}pg_controldata|sed -n '/Catalog version number:/s/^.*: *//p'`
34
if [ "$CATVER" != $CATALOG_VERSION_NO ]; then
35
+ if [ -n "$check" ]; then
36
+ echo "Database needs upgrade"
37
+ exit 1
38
+ fi
39
if [ ! -f "${PGDATA}/global/pg_control" ]; then
40
# looks like we have Debian with separate directory for configs
41
SAVE_PGDATA="$PGDATA"
0 commit comments