From f41246d575d5d9de7156973ad1bcf36b50cb91d7 Mon Sep 17 00:00:00 2001 From: Luke Smith Date: Sun, 11 Oct 2020 14:46:45 -0400 Subject: more robust --- emailwiz.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'emailwiz.sh') diff --git a/emailwiz.sh b/emailwiz.sh index e24c089..837ea1c 100755 --- a/emailwiz.sh +++ b/emailwiz.sh @@ -253,7 +253,7 @@ sed -i '/^#Canonicalization/s/simple/relaxed\/simple/' /etc/opendkim.conf sed -i '/^#Canonicalization/s/^#//' /etc/opendkim.conf sed -e '/Socket/s/^#*/#/' -i /etc/opendkim.conf -sed -i '/\local:\/var\/run\/opendkim\/opendkim.sock/a \Socket\t\t\tinet:12301@localhost' /etc/opendkim.conf +grep -q "^Socket\s*inet:12301@localhost" /etc/opendkim.conf || echo "Socket inet:12301@localhost" >> /etc/opendkim.conf # OpenDKIM daemon settings, removing previously activated socket. sed -i "/^SOCKET/d" /etc/default/opendkim && echo "SOCKET=\"inet:12301@localhost\"" >> /etc/default/opendkim -- cgit v1.2.3-70-g09d2