mirror of
https://github.com/thelittlerocket/pve.git
synced 2025-02-01 02:29:01 +08:00
Update install_pve.sh
This commit is contained in:
parent
d57a665cd5
commit
643a8ae458
1 changed files with 17 additions and 17 deletions
|
@ -316,7 +316,7 @@ if [ ! -f "/usr/local/bin/ifupdown2_installed.txt" ]; then
|
|||
check_cdn_file
|
||||
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/extra_scripts/install_ifupdown2.sh -O /usr/local/bin/install_ifupdown2.sh
|
||||
wget ${cdn_success_url}https://raw.githubusercontent.com/spiritLHLS/pve/main/extra_scripts/ifupdown2-install.service -O /etc/systemd/system/ifupdown2-install.service
|
||||
chmod 777 install_ifupdown2.sh
|
||||
chmod 777 /usr/local/bin/install_ifupdown2.sh
|
||||
chmod 777 /etc/systemd/system/ifupdown2-install.service
|
||||
if [ -f "install_ifupdown2.sh" ]; then
|
||||
# _green "This script will automatically reboot the system after 5 seconds, please wait a few minutes to log into SSH and execute this script again"
|
||||
|
@ -565,6 +565,10 @@ rebuild_interfaces
|
|||
# cloudinit 重构
|
||||
rebuild_cloud_init
|
||||
fix_interfaces_ipv6_auto_type /etc/network/interfaces
|
||||
# 统计运行次数
|
||||
statistics_of_run-times
|
||||
# 检测是否已重启过
|
||||
if [ ! -f "/usr/local/bin/reboot_pve.txt" ]; then
|
||||
output=$(dmidecode -t system)
|
||||
# 特殊处理Azure
|
||||
if [[ $output == *"Microsoft Corporation"* ]]; then
|
||||
|
@ -581,10 +585,6 @@ fi
|
|||
# if dig -x $main_ipv4 | grep -q "vps.ovh"; then
|
||||
# prebuild_ifupdown2
|
||||
# fi
|
||||
# 统计运行次数
|
||||
statistics_of_run-times
|
||||
# 检测是否已重启过
|
||||
if [ ! -f "/usr/local/bin/reboot_pve.txt" ]; then
|
||||
echo "1" > "/usr/local/bin/reboot_pve.txt"
|
||||
_green "Please execute reboot to reboot the system and then execute this script again"
|
||||
_green "Please wait at least 20 seconds after logging in with SSH again before executing this script."
|
||||
|
|
Loading…
Reference in a new issue