- makni update_conf u functions.sh
authorDinko Korunic <kreator@carnet.hr>
Fri, 11 Apr 2008 19:44:44 +0000 (21:44 +0200)
committerDinko Korunic <kreator@carnet.hr>
Fri, 11 Apr 2008 19:44:44 +0000 (21:44 +0200)
- ispravno proslijedi $* array u update_postfix (do sada nije dobivao $1 i
  $2)
Signed-off-by: Dinko Korunic <kreator@carnet.hr>

debian/postinst
src/functions.sh

index 9e3b82e..10a632c 100755 (executable)
@@ -27,17 +27,6 @@ export PATH
 . /usr/share/amavisd-cn/variables.sh
 . /usr/share/amavisd-cn/functions.sh
 
-# Place configuration tweaks done on upgrades into this function
-update_conf() {
-  [ "$DEBIAN_SCRIPT_DEBUG" ] && set -vx
-  # placeholder.
-  # remember to set changed_config=1 and restart_daemon=1 if necessary
-  #:
-  if dpkg --compare-versions "$1" lt $MASTTMPLVERSION; then
-    conf_from_template
-  fi
-}
-
 mta=postfix
 . /usr/share/amavisd-cn/postfix.sh
 
@@ -45,7 +34,7 @@ mta=postfix
 cp_get_mx_domain
 domain=$RET
 
-update_postfix
+update_postfix $*
 
 # amavisd.conf
 if [ -f "$ACONFOLD" ]; then
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