This commit is contained in:
CanbiZ
2025-08-04 10:57:18 +02:00
parent d38f0d343e
commit 1cb2d7e1bb
3 changed files with 8 additions and 5 deletions

View File

@@ -1428,8 +1428,12 @@ EOF'
fi
msg_ok "Customized LXC Container"
if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/"$var_install".sh)"; then
exit $?
if ! lxc-attach -n "$CTID" -- bash -c "$(curl -fsSL https://raw.githubusercontent.com/community-scripts/ProxmoxVED/main/install/$var_install.sh)"; then
EXITCODE=$?
if [[ $EXITCODE -eq 10 ]]; then
destroy_lxc
fi
exit $EXITCODE
fi
}