diff options
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 358e9986b..989e02167 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 |