r12: Fixes for package breakage, more postinst cleanup and
[amavisd-cn.git] / debian / postinst
index 4ce2de2..a1a8fe2 100755 (executable)
@@ -48,18 +48,14 @@ update_postfix
 # amavisd.conf
 if [ -f "$ACONFOLD" ]; then
   cp_echo "CN: Amavisd configuration is now in $ACONF."
-  cp_echo "    Previous location was $ACONFOLD."
-  cp_backup_conffile "$ACONFOLD"
+  noisy_backup "$ACONFOLD"
   rm -f "$ACONFOLD"
-  cp_echo "    Old file renamed to $ACONFMOVED."
-  fi
   cp_echo ""
   cp_echo "CN: Please read /usr/share/doc/amavisd-cn/README.CARNet."
 elif [ -f "$ACONFOLD.disabled" ]; then
-  cp_backup_conffile "$ACONFOLD.disabled" "$(basename $ACONFOLD)"
+  noisy_backup "$ACONFOLD.disabled" "$(basename $ACONFOLD)"
   rm -f "$ACONFOLD.disabled"
-  cp_echo "CN: Removed $ACONFOLD.disabled."
-  cp_echo "    Please read /usr/share/doc/amavisd-cn/README.CARNet."
+  cp_echo "CN: Please read /usr/share/doc/amavisd-cn/README.CARNet."
 fi
 
 if [ -f $ACONF ]; then