From c1d469ca06e7fc6ddef765a141bb2aa35fa9e3dd Mon Sep 17 00:00:00 2001 From: S4kura0ne Date: Sun, 10 Jan 2021 14:51:06 +0800 Subject: [PATCH] fix WGET_SSL var for wget in ddns-script (#6177) * Update update_aliyun_com.sh * Update update_dnspod_cn.sh * Update update_dnspod_com.sh --- package/lean/ddns-scripts_aliyun/update_aliyun_com.sh | 1 + package/lean/ddns-scripts_dnspod/update_dnspod_cn.sh | 1 + package/lean/ddns-scripts_dnspod/update_dnspod_com.sh | 1 + 3 files changed, 3 insertions(+) diff --git a/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh b/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh index e8ee45767..96d5ff49a 100755 --- a/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh +++ b/package/lean/ddns-scripts_aliyun/update_aliyun_com.sh @@ -17,6 +17,7 @@ [ -z "$password" ] && write_log 14 "配置错误!保存阿里云API访问密钥的'密码'不能为空" # 检查外部调用工具 +WGET_SSL='wget' [ -n "$WGET_SSL" ] || write_log 13 "使用阿里云API需要 GNU Wget 支持,请先安装" command -v sed >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 sed 支持,请先安装" command -v openssl >/dev/null 2>&1 || write_log 13 "使用阿里云API需要 openssl-util 支持,请先安装" diff --git a/package/lean/ddns-scripts_dnspod/update_dnspod_cn.sh b/package/lean/ddns-scripts_dnspod/update_dnspod_cn.sh index 493536527..4858a3bd7 100644 --- a/package/lean/ddns-scripts_dnspod/update_dnspod_cn.sh +++ b/package/lean/ddns-scripts_dnspod/update_dnspod_cn.sh @@ -5,6 +5,7 @@ [ -z "$password" ] && write_log 14 "Configuration error! [Password] cannot be empty" #检查外部调用工具 +WGET_SSL='wget' [ -n "$WGET_SSL" ] || write_log 13 "GNU Wget support is required to use Alibaba Cloud API. Please install first" # 变量声明 diff --git a/package/lean/ddns-scripts_dnspod/update_dnspod_com.sh b/package/lean/ddns-scripts_dnspod/update_dnspod_com.sh index ece86d8a6..8e8e80eec 100644 --- a/package/lean/ddns-scripts_dnspod/update_dnspod_com.sh +++ b/package/lean/ddns-scripts_dnspod/update_dnspod_com.sh @@ -5,6 +5,7 @@ [ -z "$password" ] && write_log 14 "Configuration error! [Password] cannot be empty" #检查外部调用工具 +WGET_SSL='wget' [ -n "$WGET_SSL" ] || write_log 13 "GNU Wget support is required to use Alibaba Cloud API. Please install first" # 变量声明