Download the service file and move it to /etc/systemd/system/:
curl -sSL https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/systemd/cloudflare.service -o ~/cloudflare.service
chmod 644 ~/cloudflare.service
mv ~/cloudflare.service /etc/systemd/system/cloudflare.serviceDownload the env file:
curl -sSL https://raw.githubusercontent.com/edenreich/cloudflare-dns-updater/master/systemd/cloudflare.env -o ~/cloudflare.env
chmod 400 ~/cloudflare.env
sudo mv ~/cloudflare.env /etc/systemd/system/cloudflare.envModify the env file and add your access token and zone id:
sudo vim /etc/systemd/system/cloudflare.service.envFinally activate the service, run:
sudo systemctl enable cloudflare
sudo systemctl start cloudflare