mirror of
https://github.com/oneclickvirt/pve.git
synced 2024-09-20 15:05:56 +08:00
Update buildct.sh
This commit is contained in:
parent
120ce732a0
commit
e6f4bda7e5
|
@ -289,7 +289,7 @@ if echo "$system" | grep -qiE "centos|almalinux|rockylinux"; then
|
||||||
pct exec $CTID -- yum update
|
pct exec $CTID -- yum update
|
||||||
pct exec $CTID -- yum install -y dos2unix curl
|
pct exec $CTID -- yum install -y dos2unix curl
|
||||||
else
|
else
|
||||||
pct exec $CTID -- yum update -y
|
# pct exec $CTID -- yum update
|
||||||
pct exec $CTID -- yum install -y curl
|
pct exec $CTID -- yum install -y curl
|
||||||
pct exec $CTID -- curl -lk https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh -o ChangeMirrors.sh
|
pct exec $CTID -- curl -lk https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh -o ChangeMirrors.sh
|
||||||
pct exec $CTID -- chmod 777 ChangeMirrors.sh
|
pct exec $CTID -- chmod 777 ChangeMirrors.sh
|
||||||
|
@ -304,7 +304,7 @@ else
|
||||||
pct exec $CTID -- apt-get update
|
pct exec $CTID -- apt-get update
|
||||||
pct exec $CTID -- apt-get install dos2unix curl -y
|
pct exec $CTID -- apt-get install dos2unix curl -y
|
||||||
else
|
else
|
||||||
pct exec $CTID -- apt-get update -y
|
# pct exec $CTID -- apt-get update
|
||||||
pct exec $CTID -- apt-get install curl -y --fix-missing
|
pct exec $CTID -- apt-get install curl -y --fix-missing
|
||||||
pct exec $CTID -- curl -lk https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh -o ChangeMirrors.sh
|
pct exec $CTID -- curl -lk https://gitee.com/SuperManito/LinuxMirrors/raw/main/ChangeMirrors.sh -o ChangeMirrors.sh
|
||||||
pct exec $CTID -- chmod 777 ChangeMirrors.sh
|
pct exec $CTID -- chmod 777 ChangeMirrors.sh
|
||||||
|
|
Loading…
Reference in a new issue