Update create_lxc.sh (#2062)

This commit is contained in:
Michel Roegl-Brunner 2025-02-05 16:45:47 +01:00 committed by GitHub
parent 857964653c
commit 88ee57cf15
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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."