diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 91e0f426a..03f1c6601 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -202,7 +202,7 @@ PCT_OPTIONS=(${PCT_OPTIONS[@]:-${DEFAULT_PCT_OPTIONS[@]}}) # Create container with template integrity check msg_info "Creating LXC Container" -if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" >/dev/null; then +if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" &>/dev/null; then msg_info "Container creation failed, checking template integrity..." [[ -f "$TEMPLATE_PATH" ]] && rm -f "$TEMPLATE_PATH" msg_ok "Template integrity check completed" @@ -212,7 +212,7 @@ if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[ { msg_error "A problem occurred while re-downloading the LXC template."; exit 208; } msg_ok "Re-downloaded LXC Template" - if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" >/dev/null; then + if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" &>/dev/null; then msg_error "A problem occurred while trying to create container after re-downloading template." exit 200 fi