From 5c9ba4646f3e2246cbeeae8feee3e85a2b4a833d Mon Sep 17 00:00:00 2001 From: iUnknwn Date: Wed, 15 Jan 2020 16:28:35 -0800 Subject: [PATCH] Add instuctions for updating cloudflared binary. Adds a section to the DNS-Over-HTTPS guide with instructions for how to ensure the cloudflared daemon is kept up-to-date. --- docs/guides/dns-over-https.md | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/docs/guides/dns-over-https.md b/docs/guides/dns-over-https.md index 793d9ba..bab4283 100644 --- a/docs/guides/dns-over-https.md +++ b/docs/guides/dns-over-https.md @@ -223,3 +223,23 @@ sudo systemctl daemon-reload After the above, don't forget to change the DNS back to something else in Pi-hole's DNS settings! [^guide]: Based on [this guide by Ben Dews | bendews.com](https://bendews.com/posts/implement-dns-over-https/) + +### Updating Cloudflared + +The `cloudflared` tool will not receive updates through the package manager, but it can be instrcted to update itself. + +To do this, create the following script, and place it in `/etc/cron.weekly/cloudflared-updater.sh`: + +```bash +cloudflared update +systemctl restart cloudflared +``` + +Adjust permissions: + +```bash +sudo chmod +x /etc/cron.weekly/cloudflared-updater.sh +sudo chown root:root /etc/cron.weekly/cloudflared-updater.sh +``` + +The system will now attempt to update the cloudflared binary automatically, once per week. \ No newline at end of file