nixos: 临时处理 curl 不会重定向 206 + Location Header

This commit is contained in:
bin456789 2024-08-23 00:15:16 +08:00
parent 8e1e06b26a
commit 1f70e0c70a
No known key found for this signature in database
GPG Key ID: EE301B386DE6C11B

View File

@ -978,7 +978,9 @@ setos() {
:
else
# 传统安装
test_url $mirror/nixos-$releasever/store-paths.xz xz
# 该服务器文件缓存 miss 时会响应 206 + Location 头
# 但 curl 这种情况不会重定向,所以添加 ascii 类型让它不要报错
test_url $mirror/nixos-$releasever/store-paths.xz xz/ascii
eval ${step}_mirror=$mirror
fi
}