r12: - oops, forgot to copy tempfiles
authorDinko Korunic <Dinko.Korunic@CARNet.hr>
Tue, 16 Oct 2007 14:52:00 +0000 (14:52 +0000)
committerDinko Korunic <Dinko.Korunic@CARNet.hr>
Tue, 16 Oct 2007 14:52:00 +0000 (14:52 +0000)
debian/postinst

index ed61747..36ac9ec 100755 (executable)
@@ -209,10 +209,11 @@ if [ -f $examdir/local.cf ]; then
 fi
 
 # enable requested plugins in SA
-list=$(find /etc/spamassassin -type -f -name 'v*.pre')
+list=$(find /etc/spamassassin -type f -name 'v*.pre')
 for i in $list; do
     # enable DCC if requested
     if [ "$use_dcc" = "true" ]; then
+        cp -f $i $i.$$
         plugin="loadplugin Mail::SpamAssassin::Plugin::DCC"
         cp_check_and_sed "^.*#.*$plugin.*$" \
             "s/^.*#.*$plugin.*$/$plugin/g" $i.$$ || true
@@ -223,6 +224,7 @@ for i in $list; do
     fi
 
     # enable DKIM
+    cp -f $i $i.$$
     plugin="loadplugin Mail::SpamAssassin::Plugin::DKIM"
     cp_check_and_sed "^.*#.*$plugin.*$" \
         "s/^.*#.*$plugin.*$/$plugin/g" $i.$$ || true