From 88ee57cf15b30a98ac072e9f35cf0224f799c71f Mon Sep 17 00:00:00 2001 From: Michel Roegl-Brunner <73236783+michelroegl-brunner@users.noreply.github.com> Date: Wed, 5 Feb 2025 16:45:47 +0100 Subject: [PATCH] Update create_lxc.sh (#2062) --- ct/create_lxc.sh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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."