diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-20 13:05:51 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-08-20 13:12:03 +0000 |
commit | 97c5223faa964187f4205cb676ae4b723662bef9 (patch) | |
tree | 3f27a30679ae192727b1f160bdc82a4eaee816b1 /main/postgresql/postgresql.pre-upgrade | |
parent | b9bd58ea5d9f1c07d2d499589532bc7ce44d3676 (diff) | |
download | aports-97c5223faa964187f4205cb676ae4b723662bef9.tar.bz2 aports-97c5223faa964187f4205cb676ae4b723662bef9.tar.xz |
main/postgresql: fix pre-upgrade script
inclusive typo
Diffstat (limited to 'main/postgresql/postgresql.pre-upgrade')
-rw-r--r-- | main/postgresql/postgresql.pre-upgrade | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/main/postgresql/postgresql.pre-upgrade b/main/postgresql/postgresql.pre-upgrade index 358e9986b4..989e021673 100644 --- a/main/postgresql/postgresql.pre-upgrade +++ b/main/postgresql/postgresql.pre-upgrade @@ -1,8 +1,9 @@ #!/bin/sh -current="$1" -compare=$(apk version -t $current 8.4) +new="$1" +old="$2" +compare=$(apk version -t "$old" 8.4) # check if we upgrade from earlier than 8.4 and if it is running if [ "$compare" != "<" ] || ! /etc/init.d/postgresql --quiet status; then @@ -23,7 +24,7 @@ cat <<EOF * /etc/init.d/postgresql stop * apk add -u postgresql * /etc/init.d/postgresql setup -* /etc/init.d/postgresl start +* /etc/init.d/postgresql start * psql -U ${PGUSER:-postgres} -f dumpfile * EOF |