Commit 65c3a44e authored by Joshua Tauberer's avatar Joshua Tauberer

the cron job to re-sign DNSSEC zones wasnt working after adding the API key to...

the cron job to re-sign DNSSEC zones wasnt working after adding the API key to the management daemon because the script relied on a bash-ism but cron runs it with (probably) sh
parent 37fcc5b5
#!/bin/bash
# DNS: Configure a DNS server using nsd
#######################################
......@@ -65,10 +66,9 @@ fi
# Force the dns_update script to be run every day to re-sign zones for DNSSEC.
cat > /etc/cron.daily/mailinabox-dnssec << EOF;
#!/bin/bash
# Mail-in-a-Box
# Re-sign any DNS zones with DNSSEC because the signatures expire periodically.
curl -d GO --user \$(</var/lib/mailinabox/api.key): http://localhost:10222/dns/update
`pwd`/tools/dns_update
EOF
chmod +x /etc/cron.daily/mailinabox-dnssec
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment