Skip to content

Commit 03a2c41

Browse files
authored
Update create_lxc.sh
1 parent de4f7c3 commit 03a2c41

File tree

1 file changed

+13
-13
lines changed

1 file changed

+13
-13
lines changed

ct/create_lxc.sh

+13-13
Original file line numberDiff line numberDiff line change
@@ -178,18 +178,18 @@ function select_storage() {
178178
}
179179

180180
# Check for network connectivity (IPv4 & IPv6)
181-
function check_network() {
182-
local CHECK_URLS=("8.8.8.8" "1.1.1.1" "9.9.9.9" "2606:4700:4700::1111" "2001:4860:4860::8888" "2620:fe::fe")
183-
184-
for url in "${CHECK_URLS[@]}"; do
185-
if ping -c 1 -W 2 "$url" &>/dev/null; then
186-
return 0 # Success: At least one connection works
187-
fi
188-
done
189-
190-
msg_error "No network connection detected. Check your internet connection."
191-
exit 101
192-
}
181+
#function check_network() {
182+
# local CHECK_URLS=("8.8.8.8" "1.1.1.1" "9.9.9.9" "2606:4700:4700::1111" "2001:4860:4860::8888" "2620:fe::fe")
183+
#
184+
# for url in "${CHECK_URLS[@]}"; do
185+
# if ping -c 1 -W 2 "$url" &>/dev/null; then
186+
# return 0 # Success: At least one connection works
187+
# fi
188+
# done
189+
#
190+
# msg_error "No network connection detected. Check your internet connection."
191+
# exit 101
192+
#}
193193

194194
# Test if ID is in use
195195
if qm status "$CTID" &>/dev/null || pct status "$CTID" &>/dev/null; then
@@ -209,7 +209,7 @@ msg_ok "Using ${BL}$CONTAINER_STORAGE${CL} ${GN}for Container Storage."
209209

210210
# Update LXC template list
211211
msg_info "Updating LXC Template List"
212-
check_network
212+
#check_network
213213
pveam update >/dev/null
214214
msg_ok "Updated LXC Template List"
215215

0 commit comments

Comments
 (0)