Update build.func

This commit is contained in:
CanbiZ 2025-07-01 15:25:06 +02:00
parent e272e5d01e
commit 362b3b5679

View File

@ -1195,12 +1195,10 @@ build_container() {
-unprivileged $CT_TYPE
$PW
"
# This executes create_lxc.sh and creates the container and .conf file
CREATE_CMD="bash -c \"\$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/create_lxc.sh)\""
eval "$CREATE_CMD"
bash -c "$(curl -fsSL https://git.community-scripts.org/community-scripts/ProxmoxVED/raw/branch/main/misc/create_lxc.sh)"
RET=$?
if [[ $RET -ne 0 ]]; then
msg_error "in line $LINENO: exit code $RET: while executing command $CREATE_CMD"
msg_error "in line $LINENO: exit code $RET: while executing create_lxc.sh"
exit $RET
fi