mirror of
https://github.com/community-scripts/ProxmoxVE.git
synced 2025-09-13 10:49:41 +00:00
Alternative connectivity checks for LXC (#6472)
This commit is contained in:
parent
dde882f9e5
commit
7433f7df0c
1 changed files with 4 additions and 0 deletions
|
@ -1286,6 +1286,10 @@ EOF
|
||||||
msg_ok "Network in LXC is reachable"
|
msg_ok "Network in LXC is reachable"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
|
if pct exec "$CTID" -- curl -fsSIL --max-time 10 deb.debian.org >/dev/null 2>&1; then
|
||||||
|
msg_ok "Network in LXC is reachable"
|
||||||
|
break
|
||||||
|
fi
|
||||||
if [ "$i" -lt 10 ]; then
|
if [ "$i" -lt 10 ]; then
|
||||||
msg_warn "No network yet in LXC (try $i/10) – waiting..."
|
msg_warn "No network yet in LXC (try $i/10) – waiting..."
|
||||||
sleep 3
|
sleep 3
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue