Skip to content

Commit

Permalink
Merge branch 'master' of github.com:bokysan/docker-postfix into master
Browse files Browse the repository at this point in the history
  • Loading branch information
bokysan committed Dec 11, 2020
2 parents b85c1ea + cc6c8e4 commit f172dbd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/common-run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ postfix_setup_dkim() {
if [ -f $private_key ]; then
domain_dkim_selector="$(get_dkim_selector "${domain}")"
echo -e " ...for domain ${emphasis}${domain}${reset} (selector: ${emphasis}${domain_dkim_selector}${reset})"
if ! su opendkim -s /bin/bash -c 'cat /etc/opendkim/keys/example.org.private' > /dev/null 2>&1; then
if ! su opendkim -s /bin/bash -c "cat /etc/opendkim/keys/${domain}.private" > /dev/null 2>&1; then
echo -e " ...trying to reown ${emphasis}${private_key}${reset} as it's not readable by OpenDKIM..."
# Fixes #39
chown opendkim:opendkim "${private_key}"
Expand Down Expand Up @@ -442,4 +442,4 @@ unset_sensible_variables() {
unset XOAUTH2_SECRET
unset XOAUTH2_INITIAL_ACCESS_TOKEN
unset XOAUTH2_INITIAL_REFRESH_TOKEN
}
}

0 comments on commit f172dbd

Please sign in to comment.