From bb4ae88740a38cd2c791a768c39ce5a09dd60982 Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Tue, 31 Dec 2002 01:25:25 +0000 Subject: Reverse logic of tlsmgr check. Use tabs in tlsmgr line. --- postfix/anti-uce.sh | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'postfix') diff --git a/postfix/anti-uce.sh b/postfix/anti-uce.sh index 7be4edc..d7fab85 100755 --- a/postfix/anti-uce.sh +++ b/postfix/anti-uce.sh @@ -34,9 +34,8 @@ if dpkg -L libsasl-modules-plain &> /dev/null && [ -f /etc/ssl/certs/postfix.pem -e "s/^#\?\(\(smtps\|587\)$sp\+inet\($sp\+[n-]\)\{2\}$sp\+\)[n-]/\1n/" \ -e "s/^#\(tlsmgr$sp\)/\1/" \ > $confdir/master.cf - if cat $confdir/master.cf | egrep "^tlsmgr$sp" > /dev/null; then - echo 'tlsmgr fifo - - - 300 1 tlsmgr' >> $confdir/master.cf - fi + cat $confdir/master.cf | egrep "^tlsmgr$sp" > /dev/null || \ + echo 'tlsmgr fifo - - - 300 1 tlsmgr' >> $confdir/master.cf postconf -e 'smtpd_tls_cert_file = /etc/ssl/certs/postfix.pem' if [ -f /etc/ssl/private/postfix.pem ]; then postconf -e 'smtpd_tls_key_file = /etc/ssl/private/postfix.pem' -- cgit v1.2.3