23 lines
872 B
Bash
23 lines
872 B
Bash
CF_API_TOKEN="E5U7BDFMaIb5zCd8T07mmAQt6JE0M8Ln-C0cswTx"
|
|
CF_PROXIED=false
|
|
CF_TTL=1
|
|
|
|
# Steps
|
|
# install -d -m 0755 /etc/cf-ddns /var/lib/cf-ddns
|
|
# chmod 600 /etc/cf-ddns/cf-ddns.env
|
|
# chown root:root /etc/cf-ddns/cf-ddns.env
|
|
|
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.sh -o /usr/local/bin/cf-ddns
|
|
# chown root:root /usr/local/bin/cf-ddns
|
|
# chmod +x /usr/local/bin/cf-ddns
|
|
|
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.service -o /etc/systemd/system/cf-ddns.service
|
|
# curl https://git.abyres.net/public/harvester/raw/branch/main/cf-ddns.timer -o /etc/systemd/system/cf-ddns.timer
|
|
# chown root:root /etc/systemd/system/cf-ddns.*
|
|
# chmod 644 /etc/systemd/system/cf-ddns.*
|
|
|
|
# systemctl daemon-reload
|
|
# systemctl enable --now cf-ddns.timer
|
|
# systemctl start cf-ddns.service
|
|
|
|
# journalctl -u cf-ddns.service -n 100 --no-pager |