forked from TheWrightServer/ProxmoxVE
oh brother
This commit is contained in:
parent
77ac5bd287
commit
8da4db84e1
@ -178,7 +178,7 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
|
|||||||
|
|
||||||
# Create container
|
# Create container
|
||||||
msg_info "Creating LXC Container"
|
msg_info "Creating LXC Container"
|
||||||
print "$CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
|
cmd="pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]}"
|
||||||
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null ||
|
echo "$cmd" # debugging to see the expanded command
|
||||||
exit "A problem occured while trying to create container."
|
$cmd >/dev/null || exit "A problem occurred while trying to create the container."
|
||||||
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."
|
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user