add curl alias

This commit is contained in:
JackLee_CN 2022-10-25 17:11:56 +08:00
parent 1010d54c6c
commit 9845ec9310

View File

@ -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