diff --git a/Dockerfile b/Dockerfile index c8e4ce5..c2a4557 100644 --- a/Dockerfile +++ b/Dockerfile @@ -45,6 +45,8 @@ RUN \ /tmp/ddclient.tar.gz -C \ /tmp/ddclient --strip-components=1 && \ install -Dm755 /tmp/ddclient/ddclient /usr/bin/ && \ + mkdir -p /etc/ddclient/ && \ + cp /tmp/ddclient/sample-get-ip-from-fritzbox /etc/ddclient/get-ip-from-fritzbox && \ echo "**** cleanup ****" && \ apk del --purge \ build-dependencies && \ diff --git a/Dockerfile.aarch64 b/Dockerfile.aarch64 index 241c7ad..79cd8c4 100644 --- a/Dockerfile.aarch64 +++ b/Dockerfile.aarch64 @@ -45,6 +45,8 @@ RUN \ /tmp/ddclient.tar.gz -C \ /tmp/ddclient --strip-components=1 && \ install -Dm755 /tmp/ddclient/ddclient /usr/bin/ && \ + mkdir -p /etc/ddclient/ && \ + cp /tmp/ddclient/sample-get-ip-from-fritzbox /etc/ddclient/get-ip-from-fritzbox && \ echo "**** cleanup ****" && \ apk del --purge \ build-dependencies && \ diff --git a/Dockerfile.armhf b/Dockerfile.armhf index 9112ef6..abf05b9 100644 --- a/Dockerfile.armhf +++ b/Dockerfile.armhf @@ -45,6 +45,8 @@ RUN \ /tmp/ddclient.tar.gz -C \ /tmp/ddclient --strip-components=1 && \ install -Dm755 /tmp/ddclient/ddclient /usr/bin/ && \ + mkdir -p /etc/ddclient/ && \ + cp /tmp/ddclient/sample-get-ip-from-fritzbox /etc/ddclient/get-ip-from-fritzbox && \ echo "**** cleanup ****" && \ apk del --purge \ build-dependencies && \ diff --git a/readme-vars.yml b/readme-vars.yml index a7cb69d..b5677a5 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -42,10 +42,17 @@ optional_block_1: false # application setup block app_setup_block_enabled: true app_setup_block: | - Edit the ddclient.conf file found in your /config volume. This config file has many providers to choose from and you basically just have to uncomment your provider and add username/password where requested. If you modify ddclient.conf, ddclient will automaticcaly restart and read the config. + Edit the `ddclient.conf` file found in your `/config` volume (also see official [ddclient documentation](https://ddclient.net)). This config file has many providers to choose from and you basically just have to uncomment your provider and add username/password where requested. If you modify ddclient.conf, ddclient will automaticcaly restart and read the config. + + ### Get dynamic IP from Fritz.Box + If ddclient shall fetch the dynamic (public) IP-address from a fritz.box (AVM) add the following line to `/config/ddclient.conf`: + ```` + use=cmd, cmd=/etc/ddclient/get-ip-from-fritzbox + ```` # changelog changelogs: + - { date: "15.05.21:", desc: "Distribute script 'sample-get-ip-from-fritzbox' from ddclient repo" } - { date: "08.03.21:", desc: "Added bind-tools to provide nsupdate" } - { date: "01.06.20:", desc: "Rebasing to alpine 3.12." } - { date: "08.02.20:", desc: "Ingest from Github." }