diff options
Diffstat (limited to 'sigexec.com-gen-dkim-key.sh')
-rwxr-xr-x | sigexec.com-gen-dkim-key.sh | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/sigexec.com-gen-dkim-key.sh b/sigexec.com-gen-dkim-key.sh index d9aa9e1..3dae486 100755 --- a/sigexec.com-gen-dkim-key.sh +++ b/sigexec.com-gen-dkim-key.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Debian uses the /etc/dkimkeys/ directory but the upstream recommends using +# /var/db/dkim/. +key_directory=/etc/dkimkeys/sigexec.com/ + if [ $# -lt 1 ]; then >&2 echo "Usage: $0 selector" exit 1 @@ -7,9 +11,9 @@ fi selector=$1 -mkdir --parents /etc/dkimkeys/sigexec.com/ +mkdir --parents -- "${key_directory}" opendkim-genkey \ - -D /etc/dkimkeys/sigexec.com/ \ + -D "${key_directory}" \ -d sigexec.com \ -s "$selector" \ -r |