Update install_pve.sh

This commit is contained in:
spiritlhl 2023-07-30 23:45:04 +08:00 committed by GitHub
parent 593d53b99c
commit a6bba7ed8f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -509,6 +509,8 @@ rm "$temp_file_apt_fix"
apt-get update -y apt-get update -y
if [ $? -ne 0 ]; then if [ $? -ne 0 ]; then
change_debian_apt_sources change_debian_apt_sources
systemctl daemon-reload
apt-get update -y
fi fi
# 检测路径 # 检测路径
target_paths="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin" target_paths="/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin"
@ -522,7 +524,6 @@ if [ ! -d /usr/local/bin ]; then
# 如果目录不存在,则创建它 # 如果目录不存在,则创建它
mkdir -p /usr/local/bin mkdir -p /usr/local/bin
fi fi
systemctl daemon-reload
# 部分安装包提前安装 # 部分安装包提前安装
install_package wget install_package wget
install_package curl install_package curl