Update create_lxc.sh

This commit is contained in:
Michel Roegl-Brunner 2025-02-07 15:27:21 +01:00 committed by GitHub
parent aad8833573
commit 93162ee3c8
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -206,9 +206,9 @@ msg_info "Creating LXC Container"
[[ -f "$TEMPLATE_PATH" ]] && rm -f "$TEMPLATE_PATH"
msg_ok "Template integrity check completed"
pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null ||
pveam download "$TEMPLATE_STORAGE" "$TEMPLATE" >/dev/null ||
{ 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
msg_error "A problem occurred while trying to create container after re-downloading template."