From 2c31e9cbfc68da78554f6f8d0d66ebe5cc4995ee Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Fri, 7 Feb 2025 14:41:24 +0100 Subject: [PATCH] Update create_lxc.sh --- ct/create_lxc.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/ct/create_lxc.sh b/ct/create_lxc.sh index 03f1c6601..9b47b8901 100644 --- a/ct/create_lxc.sh +++ b/ct/create_lxc.sh @@ -212,7 +212,8 @@ 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}" &>/dev/null; then + msg_info "Retrying LXC Container creation" + if ! pct create "$CTID" "${TEMPLATE_STORAGE}:vztmpl/${TEMPLATE}" "${PCT_OPTIONS[@]}" &>/dev/null; then msg_error "A problem occurred while trying to create container after re-downloading template." exit 200 fi