diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-23 12:21:17 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2009-09-23 12:21:17 +0000 |
commit | 92f49a48eee6ada03ccd5a55b870bb7588c88029 (patch) | |
tree | eb4620d1adf74434912d1be689bc0ee335fd3a84 /main/acf-weblog | |
parent | 673bcaeccbabdfb2cfa4ffac1d5d2d18714205d3 (diff) | |
download | aports-92f49a48eee6ada03ccd5a55b870bb7588c88029.tar.bz2 aports-92f49a48eee6ada03ccd5a55b870bb7588c88029.tar.xz |
main/acf-weblog: updated the post-install script
i forgot that in last commit.
Diffstat (limited to 'main/acf-weblog')
-rw-r--r-- | main/acf-weblog/APKBUILD | 2 | ||||
-rw-r--r-- | main/acf-weblog/acf-weblog.post-upgrade | 9 |
2 files changed, 9 insertions, 2 deletions
diff --git a/main/acf-weblog/APKBUILD b/main/acf-weblog/APKBUILD index 4a7ca785a..d4934b768 100644 --- a/main/acf-weblog/APKBUILD +++ b/main/acf-weblog/APKBUILD @@ -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" diff --git a/main/acf-weblog/acf-weblog.post-upgrade b/main/acf-weblog/acf-weblog.post-upgrade index 325f8cb32..aec1e22c4 100644 --- a/main/acf-weblog/acf-weblog.post-upgrade +++ b/main/acf-weblog/acf-weblog.post-upgrade @@ -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 |