formatting

This commit is contained in:
CanbiZ 2025-07-22 09:37:53 +02:00
parent 4c92085074
commit 6c74217c19
2 changed files with 1061 additions and 1056 deletions

View File

@ -18,7 +18,7 @@
"editor.minimap.enabled": false,
"terminal.integrated.scrollback": 10000,
"[shellscript]": {
"editor.defaultFormatter": "foxundermoon.shell-format",
"editor.defaultFormatter": "mads-hartmann.bash-ide-vscode",
"editor.tabSize": 4,
"editor.insertSpaces": true,
},

View File

@ -88,7 +88,7 @@ pve_check() {
# 8 Version Check
if [[ "$PVE_VER" =~ ^8\.([0-9]+) ]]; then
local MINOR="${BASH_REMATCH[1]}"
if (( MINOR < 1 || MINOR > 4 )); then
if ((MINOR < 1 || MINOR > 4)); then
msg_error "This version of Proxmox Virtual Environment is not supported"
echo -e "Requires Proxmox Virtual Environment Version 8.1 8.4"
echo -e "Exiting..."
@ -112,7 +112,6 @@ pve_check() {
exit 1
}
# 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.
# https://cleveruptime.com/docs/files/proc-key-users | https://docs.kernel.org/security/keys/core.html
@ -1355,9 +1354,15 @@ EOF
fi
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"
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"
break
fi
@ -1371,7 +1376,7 @@ EOF
[yY]*)
pct set "$CTID" --nameserver 1.1.1.1
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"
else
msg_error "Still no network/DNS in LXC! Aborting customization."