Commit 92f49a48 authored by Natanael Copa's avatar Natanael Copa

main/acf-weblog: updated the post-install script

i forgot that in last commit.
parent 673bcaec
......@@ -2,7 +2,7 @@
# Maintainer: Ted Trask <ttrask01@yahoo.com>
pkgname=acf-weblog
pkgver=0.4.6
pkgrel=0
pkgrel=1
pkgdesc="ACF for web proxy (squid and dansguardian) logfiles"
url="http://git.alpinelinux.org/cgit/acf-weblog"
license="GPL-2"
......
......@@ -3,10 +3,17 @@
new=$1
old=$2
if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then
# if current is not older than 0.4.5 we exit.
if ! [ "$(apk version -t $old 0.4.5)" = "<" ]; then
exit 0
fi
psql -U postgres -c "ALTER TABLE dbhistlog ALTER logdatetime TYPE timestamp(3)"\
webproxylog
if ! [ "$(apk version -t $old 0.4.0)" = "<" ]; then
exit 0
fi
psql -U postgres -c "ALTER TABLE weblog ADD COLUMN shortreason text" \
webproxylog
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment