mirror of
				https://github.com/community-scripts/ProxmoxVE.git
				synced 2025-11-04 10:22:50 +00:00 
			
		
		
		
	Update install.func
This commit is contained in:
		@@ -64,6 +64,7 @@ setting_up_container() {
 | 
			
		||||
  msg_ok "Set up Container OS | Network Connected: ${BL}$(hostname -I"
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
# This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected
 | 
			
		||||
# This function checks the network connection by pinging a known IP address and prompts the user to continue if the internet is not connected
 | 
			
		||||
network_check() {
 | 
			
		||||
  set +e
 | 
			
		||||
@@ -71,6 +72,7 @@ network_check() {
 | 
			
		||||
  ipv4_connected=false
 | 
			
		||||
  ipv6_connected=false
 | 
			
		||||
  sleep 1
 | 
			
		||||
 | 
			
		||||
  # Check IPv4 connectivity to Google, Cloudflare & Quad9 DNS servers.
 | 
			
		||||
  if ping -c 1 -W 1 1.1.1.1 &>/dev/null || ping -c 1 -W 1 8.8.8.8 &>/dev/null || ping -c 1 -W 1 9.9.9.9 &>/dev/null; then
 | 
			
		||||
    msg_ok "IPv4 Internet Connected"
 | 
			
		||||
@@ -123,7 +125,6 @@ network_check() {
 | 
			
		||||
  trap 'error_handler $LINENO "$BASH_COMMAND"' ERR
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
# This function updates the Container OS by running apt-get update and upgrade
 | 
			
		||||
update_os() {
 | 
			
		||||
  msg_info "Updating Container OS"
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user