Compare commits

...

2 Commits

Author SHA1 Message Date
9845ec9310 add curl alias 2022-10-25 17:11:56 +08:00
1010d54c6c add curl 2022-10-25 17:10:05 +08:00

View File

@ -5,14 +5,14 @@
# @Last Modified time: 2019-06-09 11:39:26 # @Last Modified time: 2019-06-09 11:39:26
# 软件包列表 # 软件包列表
pkglist="wget unzip grep sed tar ca-certificates coreutils-whoami php8 php8-cgi php8-cli php8-fastcgi php8-fpm php8-mod-mysqli php8-mod-pdo php8-mod-pdo-mysql nginx-extras mariadb-server mariadb-server-extra mariadb-client mariadb-client-extra" pkglist="wget curl unzip grep sed tar ca-certificates coreutils-whoami php8 php8-cgi php8-cli php8-fastcgi php8-fpm php8-mod-mysqli php8-mod-pdo php8-mod-pdo-mysql nginx-extras mariadb-server mariadb-server-extra mariadb-client mariadb-client-extra"
phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exif php8-mod-fileinfo php8-mod-ftp php8-mod-gd php8-mod-gettext php8-mod-gmp php8-mod-iconv php8-mod-intl php8-mod-ldap php8-mod-session php8-mod-mbstring php8-mod-opcache php8-mod-openssl php8-mod-pcntl php8-mod-phar php8-pecl-redis php8-mod-session php8-mod-shmop php8-mod-simplexml php8-mod-snmp php8-mod-soap php8-mod-sockets php8-mod-sqlite3 php8-mod-sysvmsg php8-mod-sysvsem php8-mod-sysvshm php8-mod-tokenizer php8-mod-xml php8-mod-xmlreader php8-mod-xmlwriter php8-mod-zip php8-pecl-dio php8-pecl-http php8-pecl-event php8-pecl-raphf redis snmpd snmp-mibs snmp-utils zoneinfo-core zoneinfo-asia" phpmod="php8-mod-calendar php8-mod-ctype php8-mod-curl php8-mod-dom php8-mod-exif php8-mod-fileinfo php8-mod-ftp php8-mod-gd php8-mod-gettext php8-mod-gmp php8-mod-iconv php8-mod-intl php8-mod-ldap php8-mod-session php8-mod-mbstring php8-mod-opcache php8-mod-openssl php8-mod-pcntl php8-mod-phar php8-pecl-redis php8-mod-session php8-mod-shmop php8-mod-simplexml php8-mod-snmp php8-mod-soap php8-mod-sockets php8-mod-sqlite3 php8-mod-sysvmsg php8-mod-sysvsem php8-mod-sysvshm php8-mod-tokenizer php8-mod-xml php8-mod-xmlreader php8-mod-xmlwriter php8-mod-zip php8-pecl-dio php8-pecl-http php8-pecl-event php8-pecl-raphf redis snmpd snmp-mibs snmp-utils zoneinfo-core zoneinfo-asia"
#支持小米路由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