From 4459e67fab134f7e8fa1af04e7049d60b2904f45 Mon Sep 17 00:00:00 2001 From: Christian Heller Date: Fri, 9 Oct 2015 15:08:29 +0200 Subject: [PATCH] Fix bugs in opendkim setup script. --- setup_opendkim.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/setup_opendkim.sh b/setup_opendkim.sh index a8b5402..fba3b5a 100755 --- a/setup_opendkim.sh +++ b/setup_opendkim.sh @@ -11,10 +11,10 @@ fi apt-get -y install opendkim -if [ -n $file ] || [ ! -f $file ]; then +if [ ! -n "$file" ] || [ ! -f "$file" ]; then apt-get -y install opendkim-tools opendkim-genkey -d plomlompom.com -s $selector - apt-get --purge autoremove opendkim-tools + apt-get -y --purge autoremove opendkim-tools set +x echo echo 'Generated key file at '$selector'.private.' -- 2.30.2