aboutsummaryrefslogtreecommitdiffstats
path: root/main/postgresql/postgresql.pre-upgrade
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2014-03-11 10:13:09 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2014-03-11 10:13:09 +0000
commitf8e89de0a10192799bed2c5de438dfce44fe1e8b (patch)
tree544e2d65509832a179242af6f38f57f351c6cece /main/postgresql/postgresql.pre-upgrade
parent48b4da5074535b34ba4eb1bf88fabbbe3ced2799 (diff)
downloadaports-f8e89de0a10192799bed2c5de438dfce44fe1e8b.tar.bz2
aports-f8e89de0a10192799bed2c5de438dfce44fe1e8b.tar.xz
main/postgresql: fix pre-upgrade script
ref #2751
Diffstat (limited to 'main/postgresql/postgresql.pre-upgrade')
-rw-r--r--main/postgresql/postgresql.pre-upgrade2
1 files changed, 1 insertions, 1 deletions
diff --git a/main/postgresql/postgresql.pre-upgrade b/main/postgresql/postgresql.pre-upgrade
index bcdedaac88..6116252c19 100644
--- a/main/postgresql/postgresql.pre-upgrade
+++ b/main/postgresql/postgresql.pre-upgrade
@@ -3,7 +3,7 @@
new="$1"
old="$2"
-pgver=${new%*.}
+pgver=${new%.*}
compare=$(apk version -t "$old" $pgver)
# check if we upgrade from earlier than $pgver and if it is running