This commit is contained in:
2026-03-15 18:39:58 +01:00
parent 59db877c85
commit 4f05a86efe
16 changed files with 665 additions and 8 deletions

View File

@@ -1,6 +1,19 @@
#!/usr/bin/env bash
log_init() {
local fallback_dir=""
local fallback_file=""
mkdir -p "$RUNTIME_LOG_DIR" 2>/dev/null || true
if : > "$RUNTIME_LOG_FILE" 2>/dev/null; then
return 0
fi
fallback_dir="${TMPDIR:-/tmp}/postinstall-debian-$(id -u)"
fallback_file="$fallback_dir/install.log"
mkdir -p "$fallback_dir"
RUNTIME_LOG_DIR="$fallback_dir"
RUNTIME_LOG_FILE="$fallback_file"
: > "$RUNTIME_LOG_FILE"
}