From: Christian Heller Date: Fri, 9 Oct 2015 13:08:29 +0000 (+0200) Subject: Fix bugs in opendkim setup script. X-Git-Url: https://plomlompom.com/repos/%7B%7Bprefix%7D%7D/%7B%7Bdb.prefix%7D%7D/error?a=commitdiff_plain;h=4459e67fab134f7e8fa1af04e7049d60b2904f45;p=config Fix bugs in opendkim setup script. --- 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.'