projects
/
spamassassin-cn.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f66fb46
)
postavlja bayes_auto_expire na 0
author
Ivan Rako
<irako@nekkar.carnet.hr>
Mon, 17 Feb 2014 19:48:11 +0000
(20:48 +0100)
committer
Ivan Rako
<irako@nekkar.carnet.hr>
Mon, 17 Feb 2014 19:48:11 +0000
(20:48 +0100)
debian/postinst
patch
|
blob
|
history
diff --git
a/debian/postinst
b/debian/postinst
index
3b4574f
..
cc6be23
100755
(executable)
--- a/
debian/postinst
+++ b/
debian/postinst
@@
-238,10
+238,12
@@
if [ -f $examdir/local.cf ]; then
$confdir/local.cf.$$ || true
echo "CN: Activated $trusted_networks as trusted networks"
$confdir/local.cf.$$ || true
echo "CN: Activated $trusted_networks as trusted networks"
- cp_check_and_sed "^bayes_auto_expire 1" \
- "s#^bayes_auto_expire .*#bayes_auto_expire 0#g" \
- $confdir/local.cf.$$ || true
- echo "CN: Set bayes_auto_expire to 0"
+ if dpkg --compare-versions "$2" lt "2:3.3.5"; then
+ cp_check_and_sed "^bayes_auto_expire 1" \
+ "s#^bayes_auto_expire .*#bayes_auto_expire 0#g" \
+ $confdir/local.cf.$$ || true
+ echo "CN: Set bayes_auto_expire to 0"
+ fi
# different than template
if ! cmp -s $confdir/local.cf.$$ $confdir/local.cf; then
# different than template
if ! cmp -s $confdir/local.cf.$$ $confdir/local.cf; then