mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-09-06 14:34:36 +08:00
Update buildct.sh
This commit is contained in:
parent
d391a98ee2
commit
a8b13ba68d
1 changed files with 1 additions and 1 deletions
|
@ -59,6 +59,7 @@ check_china() {
|
||||||
}
|
}
|
||||||
|
|
||||||
get_system_arch
|
get_system_arch
|
||||||
|
check_china
|
||||||
if [ -z "${system_arch}" ] || [ ! -v system_arch ]; then
|
if [ -z "${system_arch}" ] || [ ! -v system_arch ]; then
|
||||||
_red "This script can only run on machines under x86_64 or arm architecture."
|
_red "This script can only run on machines under x86_64 or arm architecture."
|
||||||
exit 1
|
exit 1
|
||||||
|
@ -136,7 +137,6 @@ if [ "$system_arch" = "arch" ]; then
|
||||||
else
|
else
|
||||||
version=${num_system}
|
version=${num_system}
|
||||||
fi
|
fi
|
||||||
check_china
|
|
||||||
if [[ -z "${CN}" || "${CN}" != true ]]; then
|
if [[ -z "${CN}" || "${CN}" != true ]]; then
|
||||||
curl -o "/var/lib/vz/template/cache/${en_system}-arm64-${version}-cloud.tar.xz" "https://jenkins.linuxcontainers.org/view/LXC/job/image-${en_system}/architecture=arm64,release=${version},variant=cloud/lastSuccessfulBuild/artifact/rootfs.tar.xz"
|
curl -o "/var/lib/vz/template/cache/${en_system}-arm64-${version}-cloud.tar.xz" "https://jenkins.linuxcontainers.org/view/LXC/job/image-${en_system}/architecture=arm64,release=${version},variant=cloud/lastSuccessfulBuild/artifact/rootfs.tar.xz"
|
||||||
else
|
else
|
||||||
|
|
Loading…
Add table
Reference in a new issue