X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=8a4159170569fb2d4a0815a4f0e1a4450500b247;hb=3e2fe4efa8e02d92b12a7c0f8a3c62c4f35d832e;hp=57e754f11fe51e1646e3aac474ba5f27eb252ffc;hpb=12ee5ed01637934e8b2256d8750d48581ab6b595;p=amavisd-cn.git diff --git a/src/functions.sh b/src/functions.sh index 57e754f..8a41591 100644 --- a/src/functions.sh +++ b/src/functions.sh @@ -139,6 +139,16 @@ conf_from_template() { changed_config=1 } +# Place configuration tweaks done on upgrades into this function +update_conf() { + # placeholder. + # remember to set changed_config=1 and restart_daemon=1 if necessary + #: + if dpkg --compare-versions "$2" lt "$MASTTMPLVERSION"; then + conf_from_template + fi +} + add_redirection() { until [ -z "$1" ] do