ddns-scripts_route53-v1: Fix problems detecting curl
authorMartin Konrad <redacted>
Mon, 13 Aug 2018 03:19:08 +0000 (23:19 -0400)
committerMartin Konrad <redacted>
Mon, 20 Aug 2018 15:30:37 +0000 (11:30 -0400)
Ensure cURL is installed and has SSL support. This fixes
issue 6744.

Signed-off-by: Martin Konrad <redacted>
net/ddns-scripts/Makefile
net/ddns-scripts/files/dynamic_dns_functions.sh

index 89e7e9641bd278c8a68379ef9ae84977b8542046..baca88e4ac8e6e2c18ec82d0873877eaa1383e3b 100755 (executable)
@@ -12,7 +12,7 @@ PKG_NAME:=ddns-scripts
 PKG_VERSION:=2.7.8
 # Release == build
 # increase on changes of services files or tld_names.dat
-PKG_RELEASE:=1
+PKG_RELEASE:=2
 
 PKG_LICENSE:=GPL-2.0
 PKG_MAINTAINER:=
index 7128807a4ae2f6c0667ff172c77f1e2976c3924c..1a8fcfe10c3f4f48673c08e36043b921195694ce 100755 (executable)
@@ -78,7 +78,8 @@ WGET=$(which wget)
 WGET_SSL=$(which wget-ssl)
 
 CURL=$(which curl)
-
+# CURL_SSL not empty then SSL support available
+CURL_SSL=$($(which curl) -V 2>/dev/null | grep "Protocols:" | grep -F "https")
 # CURL_PROXY not empty then Proxy support available
 CURL_PROXY=$(find /lib /usr/lib -name libcurl.so* -exec strings {} 2>/dev/null \; | grep -im1 "all_proxy")
 
@@ -726,8 +727,6 @@ do_transfer() {
        # 2nd choice is cURL IPv4/IPv6/HTTPS
        # libcurl might be compiled without Proxy or HTTPS Support
        elif [ -n "$CURL" ]; then
-               # CURL_SSL not empty then SSL support available
-               CURL_SSL=$($(which curl) -V 2>/dev/null | grep "Protocols:" | grep -F "https")
                __PROG="$CURL -RsS -o $DATFILE --stderr $ERRFILE"
                # check HTTPS support
                [ -z "$CURL_SSL" -a $use_https -eq 1 ] && \
git clone https://git.99rst.org/PROJECT