1
0

inital release of dockerized curl command to update duckdns entry

Cette révision appartient à :
bunix42 2018-03-15 20:05:00 +00:00 révisé par Hanjo Meinhardt
Parent 00269a5e63
révision 1fca49d406
2 fichiers modifiés avec 12 ajouts et 0 suppressions

9
Dockerfile Fichier normal
Voir le fichier

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

3
renew-dns.sh Fichier exécutable
Voir le fichier

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