From 50a3460cfe5e626f42d198c43c24ff52bc433b1c Mon Sep 17 00:00:00 2001 From: sepo83 <41672421+sepo83@users.noreply.github.com> Date: Sat, 15 May 2021 10:56:24 +0200 Subject: [PATCH 1/2] Add 'sample-get-ip-from-fritzbox' (closes #37) --- Dockerfile | 2 ++ Dockerfile.aarch64 | 2 ++ Dockerfile.armhf | 2 ++ readme-vars.yml | 1 + 4 files changed, 7 insertions(+) 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..faa596b 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -46,6 +46,7 @@ app_setup_block: | # 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." } From 32db1871b584f9f4d234aea5357e251cbe556e0e Mon Sep 17 00:00:00 2001 From: sepo83 <41672421+sepo83@users.noreply.github.com> Date: Sat, 22 May 2021 16:50:05 +0200 Subject: [PATCH 2/2] Add documentation how to use get-ip-from-fritzbox --- readme-vars.yml | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/readme-vars.yml b/readme-vars.yml index faa596b..b5677a5 100644 --- a/readme-vars.yml +++ b/readme-vars.yml @@ -42,7 +42,13 @@ 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: