add curl alias
This commit is contained in:
parent
1010d54c6c
commit
9845ec9310
4
onmp.sh
4
onmp.sh
@ -12,7 +12,7 @@ phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exi
|
|||||||
#支持小米路由Monlor Tools工具箱
|
#支持小米路由Monlor Tools工具箱
|
||||||
alias opkg=/opt/bin/opkg
|
alias opkg=/opt/bin/opkg
|
||||||
alias wget=/opt/bin/wget
|
alias wget=/opt/bin/wget
|
||||||
|
alias curl=/opt/bin/curl
|
||||||
# 后续可能增加的包(缺少源支持)
|
# 后续可能增加的包(缺少源支持)
|
||||||
# php8-mod-imagick imagemagick imagemagick-jpeg imagemagick-png imagemagick-tiff imagemagick-tools
|
# 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
|
rm -rf /opt/etc/nginx/vhost/$webdir.conf
|
||||||
if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then
|
if [[ ! -f /opt/wwwroot/$name.$suffix ]]; then
|
||||||
rm -rf /opt/tmp/$name.$suffix
|
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/
|
mv /opt/tmp/$name.* /opt/wwwroot/
|
||||||
fi
|
fi
|
||||||
if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then
|
if [[ ! -f "/opt/wwwroot/$name.$suffix" ]]; then
|
||||||
|
Loading…
Reference in New Issue
Block a user