oh brother

This commit is contained in:
Josh Wright 2024-12-09 16:34:06 -05:00
parent 77ac5bd287
commit 8da4db84e1

View File

@ -178,7 +178,7 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
# Create container
msg_info "Creating LXC Container"
print "$CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null ||
exit "A problem occured while trying to create container."
cmd="pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
echo "$cmd" # debugging to see the expanded command
$cmd >/dev/null || exit "A problem occurred while trying to create the container."
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."