Update build.func

This commit is contained in:
CanbiZ 2025-05-22 14:31:15 +02:00
parent 563769904f
commit 4a1a4b949c

View File

@ -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