formatting
This commit is contained in:
parent
4c92085074
commit
6c74217c19
2
.vscode/settings.json
vendored
2
.vscode/settings.json
vendored
@ -18,7 +18,7 @@
|
|||||||
"editor.minimap.enabled": false,
|
"editor.minimap.enabled": false,
|
||||||
"terminal.integrated.scrollback": 10000,
|
"terminal.integrated.scrollback": 10000,
|
||||||
"[shellscript]": {
|
"[shellscript]": {
|
||||||
"editor.defaultFormatter": "foxundermoon.shell-format",
|
"editor.defaultFormatter": "mads-hartmann.bash-ide-vscode",
|
||||||
"editor.tabSize": 4,
|
"editor.tabSize": 4,
|
||||||
"editor.insertSpaces": true,
|
"editor.insertSpaces": true,
|
||||||
},
|
},
|
||||||
|
@ -112,7 +112,6 @@ pve_check() {
|
|||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
# When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations.
|
# When a node is running tens of containers, it's possible to exceed the kernel's cryptographic key storage allocations.
|
||||||
# These are tuneable, so verify if the currently deployment is approaching the limits, advise the user on how to tune the limits, and exit the script.
|
# These are tuneable, so verify if the currently deployment is approaching the limits, advise the user on how to tune the limits, and exit the script.
|
||||||
# https://cleveruptime.com/docs/files/proc-key-users | https://docs.kernel.org/security/keys/core.html
|
# https://cleveruptime.com/docs/files/proc-key-users | https://docs.kernel.org/security/keys/core.html
|
||||||
@ -1355,9 +1354,15 @@ EOF
|
|||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
|
if [ "$var_os" == "alpine" ]; then
|
||||||
|
PING_TARGET="alpinelinux.org"
|
||||||
|
else
|
||||||
|
PING_TARGET="deb.debian.org"
|
||||||
|
fi
|
||||||
|
|
||||||
msg_info "Waiting for network in LXC container"
|
msg_info "Waiting for network in LXC container"
|
||||||
for i in {1..10}; do
|
for i in {1..10}; do
|
||||||
if pct exec "$CTID" -- ping -c1 -W1 deb.debian.org >/dev/null 2>&1; then
|
if pct exec "$CTID" -- ping -c1 -W1 "$PING_TARGET" >/dev/null 2>&1; then
|
||||||
msg_ok "Network in LXC is reachable"
|
msg_ok "Network in LXC is reachable"
|
||||||
break
|
break
|
||||||
fi
|
fi
|
||||||
@ -1371,7 +1376,7 @@ EOF
|
|||||||
[yY]*)
|
[yY]*)
|
||||||
pct set "$CTID" --nameserver 1.1.1.1
|
pct set "$CTID" --nameserver 1.1.1.1
|
||||||
pct set "$CTID" --nameserver 8.8.8.8
|
pct set "$CTID" --nameserver 8.8.8.8
|
||||||
if pct exec "$CTID" -- ping -c1 -W1 deb.debian.org >/dev/null 2>&1; then
|
if pct exec "$CTID" -- ping -c1 -W1 "$PING_TARGET" >/dev/null 2>&1; then
|
||||||
msg_ok "Network reachable after DNS fallback"
|
msg_ok "Network reachable after DNS fallback"
|
||||||
else
|
else
|
||||||
msg_error "Still no network/DNS in LXC! Aborting customization."
|
msg_error "Still no network/DNS in LXC! Aborting customization."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user