mirror of
https://github.com/YunoHost/yunohost.git
synced 2024-09-03 20:06:10 +02:00
[fix] Create /etc/dkim if not exists in rmilter conf_regen hook
This commit is contained in:
parent
053d3efd79
commit
0c609f5709
1 changed files with 3 additions and 0 deletions
|
@ -17,6 +17,9 @@ do_post_regen() {
|
|||
# retrieve variables
|
||||
domain_list=$(sudo yunohost domain list --output-as plain --quiet)
|
||||
|
||||
# create DKIM directory
|
||||
[[ -f /etc/dkim ]] || sudo mkdir /etc/dkim
|
||||
|
||||
# create DKIM key for domains
|
||||
for domain in $domain_list; do
|
||||
domain_key="/etc/dkim/${domain}.mail.key"
|
||||
|
|
Loading…
Add table
Reference in a new issue