Fixing missing mail._domainkey when adding domain

Closing issue https://github.com/serghey-rodin/vesta/issues/990
This commit is contained in:
dpeca 2016-12-27 16:58:37 +01:00 committed by GitHub
commit 8bfe11b86d

View file

@ -125,6 +125,9 @@ if [ ! -z "$DNS_SYSTEM" ] && [ "$dkim" = 'yes' ]; then
policy="\"t=y; o=~;\"" policy="\"t=y; o=~;\""
$BIN/v-add-dns-record $user $domain $record TXT "$policy" $BIN/v-add-dns-record $user $domain $record TXT "$policy"
# Wait one second to avoid editing bind zone in the same unixtime second, because bind will not reload zone if new and last modification occur in the same unixtime second
sleep 1
record='mail._domainkey' record='mail._domainkey'
selector="\"k=rsa\; p=$p\"" selector="\"k=rsa\; p=$p\""
$BIN/v-add-dns-record $user $domain $record TXT "$selector" $BIN/v-add-dns-record $user $domain $record TXT "$selector"