diff options
Diffstat (limited to 'database/postgresql/CONFIGURE')
-rwxr-xr-x | database/postgresql/CONFIGURE | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/database/postgresql/CONFIGURE b/database/postgresql/CONFIGURE index 50acd4a004..bdce0fbeb7 100755 --- a/database/postgresql/CONFIGURE +++ b/database/postgresql/CONFIGURE @@ -1,7 +1,6 @@ -# No && because the line below will fail if there's no postgresql installed -OLDVERSION=$(installed_version $SPELL) +spell_ok $SPELL && local OLDVERSION="$(installed_version $SPELL)" || return 0 -if spell_ok $SPELL && [[ ${OLDVERSION%.*} != ${VERSION%.*} ]]; then +if [[ ${OLDVERSION%.*} != ${VERSION%.*} ]]; then message "${PROBLEM_COLOR}" && message "You are about to upgrade (downgrade) your PostgreSQL installation to a" && message "different major version, please be aware that a database repository will only" && |