home · contact · privacy
Fix bugs in opendkim setup script.
authorChristian Heller <c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:08:29 +0000 (15:08 +0200)
committerChristian Heller <c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:08:29 +0000 (15:08 +0200)
setup_opendkim.sh

index a8b5402176c676169cc1db875c04494ef9d8d7a8..fba3b5af932a4cfd79ea13fe2e6482c9a42d9bf9 100755 (executable)
@@ -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.'