mirror of
https://github.com/bin456789/reinstall.git
synced 2025-01-18 20:39:14 +08:00
nixos: 临时处理 curl 不会重定向 206 + Location Header
This commit is contained in:
parent
8e1e06b26a
commit
1f70e0c70a
@ -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
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user