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