Skip to content

Instantly share code, notes, and snippets.

@baseboxorg
Forked from Gilinho/duck.sh
Last active April 8, 2018 21:19
Show Gist options
  • Save baseboxorg/9f0fd47f9c68fe2f1b10a43d0ffe0209 to your computer and use it in GitHub Desktop.
Save baseboxorg/9f0fd47f9c68fe2f1b10a43d0ffe0209 to your computer and use it in GitHub Desktop.
Duckdns cron script
#!/usr/bin/env bash
DUCKPATH=/data/duckdns
TOKEN=changeme
DOMAINS=moo
curl -sSv "https://www.duckdns.org/update?domains=${DOMAINS}&token=${TOKEN}&ip=" \
2>> ${DUCKPATH}/stderr.log \
>> ${DUCKPATH}/stdout.log
printf ' - ' >> ${DUCKPATH}/stdout.log
date >> ${DUCKPATH}/stdout.log
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment