diff options
-rw-r--r-- | etc/ncp-config.d/duckDNS.sh | 6 | ||||
-rw-r--r-- | etc/ncp-config.d/spDYN.sh | 5 | ||||
-rwxr-xr-x | update.sh | 8 |
3 files changed, 17 insertions, 2 deletions
diff --git a/etc/ncp-config.d/duckDNS.sh b/etc/ncp-config.d/duckDNS.sh index 90d9c35f..bac8776e 100644 --- a/etc/ncp-config.d/duckDNS.sh +++ b/etc/ncp-config.d/duckDNS.sh @@ -16,7 +16,11 @@ INSTALLPATH=/usr/local/etc/$INSTALLDIR CRONFILE=/etc/cron.d/duckdns DESCRIPTION="Free Dynamic DNS provider (need account from https://duckdns.org)" -install() { :; } +install() +{ + apt-get update + apt-get install -y --no-install-recommends curl # TODO use wget instead +} configure() { diff --git a/etc/ncp-config.d/spDYN.sh b/etc/ncp-config.d/spDYN.sh index 99c63026..ec27a3dc 100644 --- a/etc/ncp-config.d/spDYN.sh +++ b/etc/ncp-config.d/spDYN.sh @@ -18,7 +18,10 @@ INSTALLPATH=/usr/local/etc/$INSTALLDIR CRONFILE=/etc/cron.d/spdnsupdater DESCRIPTION="Free Dynamic DNS provider (need account from spdyn.de)" -install() { +install() +{ + apt-get update + apt-get install -y --no-install-recommends curl # TODO use wget instead # Create the spdnsUpdater.sh mkdir -p "$INSTALLPATH" @@ -109,6 +109,14 @@ done wget -q https://raw.githubusercontent.com/nachoparker/btrfs-sync/master/btrfs-sync -O /usr/local/bin/btrfs-sync chmod +x /usr/local/bin/btrfs-sync + # docker images only + [[ -f /.docker-image ]] && { + # install curl for dynDNS and duckDNS + [[ -f /usr/bin/curl ]] || { + apt-get update + apt-get install -y --no-install-recommends curl + } + } # for non docker images [[ ! -f /.docker-image ]] && { # install avahi-daemon in armbian images |