修改下载地址

pull/79/head^2
zhangchenhao 2025-05-09 16:33:13 +08:00
parent c370a565a9
commit f8f222e740
1 changed files with 10 additions and 1 deletions

View File

@ -50,7 +50,16 @@ if [ $# -eq 0 ]; then
fi fi
function update_allinssl() { function update_allinssl() {
local url="https://download.allinssl.com/bin/allinssl.tar.gz" ARCH=$(uname -m)
if [[ "$ARCH" == "x86_64" ]]; then
local url="https://download.allinssl.com/bin/allinssl-Linux-x86_64.tar.gz"
elif [[ "$ARCH" == "aarch64" ]]; then
local url="https://download.allinssl.com/bin/allinssl-Linux-aarch64.tar.gz"
else
echo "不支持$ARCH"
exit 1
fi
# local url="https://download.allinssl.com/bin/allinssl.tar.gz"
local target_dir="${WORK_DIR}" local target_dir="${WORK_DIR}"
local temp_file=$(mktemp) local temp_file=$(mktemp)
local original_filename temp_file local original_filename temp_file