home
·
contact
·
privacy
projects
/
config
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ec7cf5e
)
Fix bugs in opendkim setup script.
author
Christian Heller
<c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:08:29 +0000
(15:08 +0200)
committer
Christian Heller
<c.heller@plomlompom.de>
Fri, 9 Oct 2015 13:08:29 +0000
(15:08 +0200)
setup_opendkim.sh
patch
|
blob
|
history
diff --git
a/setup_opendkim.sh
b/setup_opendkim.sh
index a8b5402176c676169cc1db875c04494ef9d8d7a8..fba3b5af932a4cfd79ea13fe2e6482c9a42d9bf9 100755
(executable)
--- 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.'