From d1818849f96c8f8a5d70627b60a705e019691645 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Sun, 20 Jul 2003 20:16:18 +0000 Subject: Correct embarrassing wrong grep logic. --- postfix/postfix.sh | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'postfix') diff --git a/postfix/postfix.sh b/postfix/postfix.sh index 4ff4970..b4aaa95 100755 --- a/postfix/postfix.sh +++ b/postfix/postfix.sh @@ -3,7 +3,7 @@ # /etc/local-COMMON/postfix/postfix.sh # Copyright 2002-2003 Jonas Smedegaard # -# $Id: postfix.sh,v 1.21 2003-07-20 20:13:42 jonas Exp $ +# $Id: postfix.sh,v 1.22 2003-07-20 20:16:18 jonas Exp $ # # Auto-tweak plain installed postfix Debian package # @@ -124,12 +124,12 @@ if [ -x /usr/sbin/amavisd -o -x /usr/sbin/amavisd-new ]; then for mail in virus-quarantine virusalert spam-quarantine spamalert; do touch /var/lib/amavis/mboxes/$mail chown nobody.nogroup /var/lib/amavis/mboxes/$mail - if grep -vq "^$mail:" /etc/aliases; then + if ! grep -q "^$mail:" /etc/aliases; then echo "$mail: /var/lib/amavis/mboxes/$mail" >> /etc/aliases newaliases fi done - if grep -vq "^spam.police:" /etc/aliases; then + if ! grep -q "^spam.police:" /etc/aliases; then echo "spam.police: root" >> /etc/aliases newaliases fi -- cgit v1.2.3