Skip to content

Commit 88ee57c

Browse files
Update create_lxc.sh (#2062)
1 parent 8579646 commit 88ee57c

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

ct/create_lxc.sh

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,6 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}})
200200

201201
# Create container
202202
msg_info "Creating LXC Container"
203-
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null ||
204-
msg_error "A problem occured while trying to create container."
205-
exit 200
203+
pct create $CTID ${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE} ${PCT_OPTIONS[@]} >/dev/null || { msg_error "A problem occured while trying to create container."; exit 200; }
206204
msg_ok "LXC Container ${BL}$CTID${CL} ${GN}was successfully created."
207205

0 commit comments

Comments
 (0)