From 9845ec93100a0ad2f0825cb5ff2fe08d7c4c0189 Mon Sep 17 00:00:00 2001 From: JackLee_CN <809262979@qq.com> Date: Tue, 25 Oct 2022 17:11:56 +0800 Subject: [PATCH] add curl alias --- onmp.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/onmp.sh b/onmp.sh index dd05ef9..2bcfc37 100644 --- a/onmp.sh +++ b/onmp.sh @@ -12,7 +12,7 @@ phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exi #支持小米路由Monlor Tools工具箱 alias opkg=/opt/bin/opkg alias wget=/opt/bin/wget - +alias curl=/opt/bin/curl # 后续可能增加的包(缺少源支持) # php8-mod-imagick imagemagick imagemagick-jpeg imagemagick-png imagemagick-tiff imagemagick-tools @@ -838,7 +838,7 @@ fi rm -rf /opt/etc/nginx/vhost/$webdir.conf if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then rm -rf /opt/tmp/$name.$suffix - wget --no-check-certificate -O /opt/tmp/$name.$suffix $filelink + curl -O -L $filelink /opt/tmp/$name.$suffix mv /opt/tmp/$name.* /opt/wwwroot/ fi if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then