- makni update_conf u functions.sh
[amavisd-cn.git] / src / functions.sh
index 57e754f..8a41591 100755 (executable)
@@ -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