]> git.donarmstrong.com Git - deb_pkgs/spamass-milter.git/commitdiff
reverse tests for the sendmail compatibility symlink
authordon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Tue, 2 Jan 2007 15:21:45 +0000 (15:21 +0000)
committerdon <don@8f7917da-ec0b-0410-a553-b9b0e350d17e>
Tue, 2 Jan 2007 15:21:45 +0000 (15:21 +0000)
debian/spamass-milter.init

index 2518624e37cee5c9ea94fbf05aa397fc75ad996d..6da6d93c108d23ce1dda6bb8670226637759e06a 100644 (file)
@@ -80,7 +80,7 @@ start() {
     # Drop in a compatibility symlink for the old sendmail socket location
     if [ -d /var/run/sendmail ] && [ -n "$RUNAS" ] && 
        [ "$SOCKET" == "/var/run/spamass/spamass.sock" ] && 
-       [ ! -L /var/run/sendmail/spamass.sock ] || [ ! -e /var/run/sendmail/spamass.sock ]; then
+        [ ! -e /var/run/sendmail/spamass.sock ] && [ ! -L /var/run/sendmail/spamass.sock ]; then
        ln -s $SOCKET /var/run/sendmail/spamass.sock;
     fi;
     /bin/rm -f $SOCKET