Update create_lxc.sh

This commit is contained in:
CanbiZ 2025-06-25 09:17:15 +02:00
parent 8fb85c9507
commit 2d492c89bf

View File

@ -249,6 +249,7 @@ flock -w 60 9 || {
msg_error "Timeout while waiting for template lock" msg_error "Timeout while waiting for template lock"
exit 211 exit 211
} }
msg_info "Creating LXC Container" msg_info "Creating LXC Container"
if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" &>/dev/null; then if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" &>/dev/null; then
msg_error "Container creation failed. Checking if template is corrupted or incomplete." msg_error "Container creation failed. Checking if template is corrupted or incomplete."