Browse Source

inital release of dockerized curl command to update duckdns entry

bunix42 1 year ago
parent
commit
1fca49d406
2 changed files with 12 additions and 0 deletions
  1. 9
    0
      Dockerfile
  2. 3
    0
      renew-dns.sh

+ 9
- 0
Dockerfile View File

@@ -0,0 +1,9 @@
1
+FROM alpine
2
+
3
+RUN apk add -U --no-cache curl
4
+
5
+COPY renew-dns.sh /etc/periodic/15min/renew-dns.sh
6
+
7
+ENV VERBOSE false
8
+
9
+CMD /etc/periodic/15min/renew-dns.sh && crond -f -d 8

+ 3
- 0
renew-dns.sh View File

@@ -0,0 +1,3 @@
1
+#!/bin/sh
2
+
3
+curl -s "https://www.duckdns.org/update?domains=$DOMAINS&token=$TOKEN&VERBOSE=$VERBOSE"

Loading…
Cancel
Save