blob: 50acd4a00418c3d4a10a543f6f5ac9a35256b080 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
|
# No && because the line below will fail if there's no postgresql installed
OLDVERSION=$(installed_version $SPELL)
if spell_ok $SPELL && [[ ${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" &&
message "work with a specific major version of PostgreSQL. You need to make a dump of" &&
message "your entire database system, create a new repository with the new PostgreSQL" &&
message "version and import your dump. You should not continue with this upgrade" &&
message "(downgrade) if you do not have a dump of your database system. If you need" &&
message "help creating a dump of your database system see the PostgreSQL HOWTO at" &&
message "(http://wiki.sourcemage.org/HowTo/Postgresql) for instructions." &&
message "${DEFAULT_COLOR}" &&
if ! query "Do you wish to upgrade PostgreSQL now?" n; then
return 1
fi
fi
|