Skip to content

Commit

Permalink
Add instuctions for updating cloudflared binary.
Browse files Browse the repository at this point in the history
Adds a section to the DNS-Over-HTTPS guide with instructions
for how to ensure the cloudflared daemon is kept up-to-date.
  • Loading branch information
iUnknwn committed Feb 17, 2020
1 parent 1266dbf commit 0bf86a9
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions docs/guides/dns-over-https.md
Original file line number Diff line number Diff line change
Expand Up @@ -132,3 +132,23 @@ Finally, configure Pi-hole to use the local `cloudflared` service as the upstrea
(don't forget to hit Return or click on `Save`)
[^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.

0 comments on commit 0bf86a9

Please sign in to comment.