X-Git-Url: http://ftp.carnet.hr/carnet-debian/scm?a=blobdiff_plain;f=src%2Ffunctions.sh;h=8a4159170569fb2d4a0815a4f0e1a4450500b247;hb=refs%2Fheads%2Flenny;hp=57e754f11fe51e1646e3aac474ba5f27eb252ffc;hpb=f79a8b07f4b60324b7663f33ba10d057a7fa5e26;p=amavisd-cn.git diff --git a/src/functions.sh b/src/functions.sh index 57e754f..8a41591 100755 --- 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