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 | |
parent | b9bd58ea5d9f1c07d2d499589532bc7ce44d3676 (diff) | |
download | aports-97c5223faa964187f4205cb676ae4b723662bef9.tar.bz2 aports-97c5223faa964187f4205cb676ae4b723662bef9.tar.xz |
main/postgresql: fix pre-upgrade script
inclusive typo
-rw-r--r-- | main/postgresql/APKBUILD | 6 | ||||
-rw-r--r-- | main/postgresql/postgresql.pre-upgrade | 7 |
2 files changed, 6 insertions, 7 deletions
diff --git a/main/postgresql/APKBUILD b/main/postgresql/APKBUILD index 205c3f89c5..2c3266bc09 100644 --- a/main/postgresql/APKBUILD +++ b/main/postgresql/APKBUILD @@ -1,7 +1,7 @@ # Maintainer: Natanael Copa <ncopa@alpinelinux.org> pkgname=postgresql pkgver=8.4.0 -pkgrel=0 +pkgrel=1 pkgdesc="A sophisticated object-relational DBMS" url="http://www.postgresql.org/" license="BSD" @@ -12,7 +12,6 @@ subpackages="$pkgname-dev $pkgname-doc libpq $pkgname-client" source="ftp://ftp.$pkgname.org/pub/source/v$pkgver/$pkgname-$pkgver.tar.bz2 $pkgname.initd $pkgname.confd - $install " build() { @@ -49,5 +48,4 @@ client() { md5sums="1f172d5f60326e972837f58fa5acd130 postgresql-8.4.0.tar.bz2 6dd7bd7c97252312357a255237115b38 postgresql.initd -6218755fde294b7d17b77d280a9c9106 postgresql.confd -a5c671b718f7adc9735b1ed89a5c26e1 postgresql.pre-upgrade" +6218755fde294b7d17b77d280a9c9106 postgresql.confd" 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 |