diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 1f3dfce9..50bbaac5 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -200,8 +200,6 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}}) # Create container msg_info "Creating LXC Container" -pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || - msg_error "A problem occured while trying to create container." - exit 200 +pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || { msg_error "A problem occured while trying to create container."; exit 200; } msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."