From 4a1a4b949cc3a8036905f323fd820a0d5854f459 Mon Sep 17 00:00:00 2001 From: CanbiZ <47820557+MickLesk@users.noreply.github.com> Date: Thu, 22 May 2025 14:31:15 +0200 Subject: [PATCH] Update build.func --- misc/build.func | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/misc/build.func b/misc/build.func index 2019933..9035529 100644 --- a/misc/build.func +++ b/misc/build.func @@ -1167,9 +1167,19 @@ EOF # } api_exit_script() { - exit_code=$? # Capture the exit status of the last executed command - #200 exit codes indicate error in create_lxc.sh - #100 exit codes indicate error in install.func + exit_code=$? + + # Fallback + CT_TYPE="${CT_TYPE:-1}" + DISK_SIZE="${DISK_SIZE:-0}" + CORE_COUNT="${CORE_COUNT:-1}" + RAM_SIZE="${RAM_SIZE:-512}" + NSAPP="${NSAPP:-unknown}" + var_os="${var_os:-debian}" + var_version="${var_version:-12}" + METHOD="${METHOD:-unknown}" + DISABLEIP6="${DISABLEIP6:-no}" + RANDOM_UUID="${RANDOM_UUID:-$(cat /proc/sys/kernel/random/uuid)}" if [ $exit_code -ne 0 ]; then case $exit_code in