From 117008f41fe668b9ccbf8dedf24954bf1e0191be Mon Sep 17 00:00:00 2001 From: lurchi Date: Mon, 5 Nov 2018 14:32:08 +0100 Subject: [PATCH] don't require update_hook to be a shell script --- homeserverdns-daemon | 4 ++-- homeserverdns.cfg | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/homeserverdns-daemon b/homeserverdns-daemon index 7d60c0d..3b06e2e 100755 --- a/homeserverdns-daemon +++ b/homeserverdns-daemon @@ -128,11 +128,11 @@ function update { echo "[$(date "+%Y-%m-%d %H:%M")] updating ${domain} ..." if [ -n "$1" ]; then echo -n "| setting A=$1 ... " - echo "status: "$(eval "IP4=$1 bash ${update_hook:-$default_update_hook}") + echo "status: "$(eval "IP4=$1 ${update_hook:-$default_update_hook}") fi if [ -n "$2" ]; then echo -n "| setting AAAA=$2 ... " - echo "status: "$(eval "IP6=$2 bash ${update_hook:-$default_update_hook}") + echo "status: "$(eval "IP6=$2 ${update_hook:-$default_update_hook}") fi done } diff --git a/homeserverdns.cfg b/homeserverdns.cfg index 34ce7b4..e0f7107 100644 --- a/homeserverdns.cfg +++ b/homeserverdns.cfg @@ -8,7 +8,7 @@ public_ip4_hook= # The command to be called when an IP change is detected. Environment variables # will be set when calling it (for documentation see homeserverdns-update). -# Default: ./homeserverdns-update +# Default: homeserverdns-update update_hook= # The address of the API, required for dyndns protocol.