mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-01-31 10:09:03 +08:00
Update fixed_windows.sh
This commit is contained in:
parent
1ff28f20e4
commit
15f0a81970
1 changed files with 10 additions and 5 deletions
|
@ -21,6 +21,9 @@ fi
|
||||||
if [ ! -d /usr/local/bin ]; then
|
if [ ! -d /usr/local/bin ]; then
|
||||||
mkdir -p /usr/local/bin
|
mkdir -p /usr/local/bin
|
||||||
fi
|
fi
|
||||||
|
if [ ! -d /usr/local/bin/Geco-Cloudbase-Init ]; then
|
||||||
|
mkdir -p /usr/local/bin/Geco-Cloudbase-Init
|
||||||
|
fi
|
||||||
|
|
||||||
check_china() {
|
check_china() {
|
||||||
_yellow "IP area being detected ......"
|
_yellow "IP area being detected ......"
|
||||||
|
@ -85,7 +88,7 @@ check_cdn_file() {
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
apt-get install git patch -y
|
apt-get install unzip patch -y
|
||||||
|
|
||||||
# ChinaIP检测
|
# ChinaIP检测
|
||||||
check_china
|
check_china
|
||||||
|
@ -108,11 +111,13 @@ fi
|
||||||
# https://github.com/GECO-IT/Geco-Cloudbase-Init
|
# https://github.com/GECO-IT/Geco-Cloudbase-Init
|
||||||
# https://forum.proxmox.com/threads/howto-scripts-to-make-cloudbase-work-like-cloudinit-for-your-windows-based-instances.103375/
|
# https://forum.proxmox.com/threads/howto-scripts-to-make-cloudbase-work-like-cloudinit-for-your-windows-based-instances.103375/
|
||||||
if [[ -z "${CN}" || "${CN}" != true ]]; then
|
if [[ -z "${CN}" || "${CN}" != true ]]; then
|
||||||
cd /usr/local/bin/ && git clone git@github.com:GECO-IT/Geco-Cloudbase-Init.git
|
wget https://github.com/GECO-IT/Geco-Cloudbase-Init/archive/refs/heads/master.zip
|
||||||
cd /root >/dev/null 2>&1
|
unzip master.zip
|
||||||
|
mv Geco-Cloudbase-Init-master/* /usr/local/bin/Geco-Cloudbase-Init/
|
||||||
else
|
else
|
||||||
cd /usr/local/bin/ && git clone "${cdn_success_url}https://github.com/GECO-IT/Geco-Cloudbase-Init.git"
|
wget "${cdn_success_url}https://github.com/GECO-IT/Geco-Cloudbase-Init/archive/refs/heads/master.zip"
|
||||||
cd /root >/dev/null 2>&1
|
unzip master.zip
|
||||||
|
mv Geco-Cloudbase-Init-master/* /usr/local/bin/Geco-Cloudbase-Init/
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# 识别是否可替换对应版本镜像
|
# 识别是否可替换对应版本镜像
|
||||||
|
|
Loading…
Reference in a new issue