Staged installer set for Alpine Linux x86-64 (tinkerpad/ThinkPad T480). Covers Base (Tier 0), Minimal (Tier 1), and Basic (Tier 2) tiers with full phased structure, per-package error capture, and re-runnable test suites. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
46 lines
1.7 KiB
Bash
46 lines
1.7 KiB
Bash
#!/usr/bin/env bash
|
|
# Created by John A. Hoeven with the ethical assistance of Claude AI
|
|
# ---------------------------------------------------------------------------
|
|
# 07_journal.sh
|
|
# ~/projects/ceos/alpine-installer/lib/minimal/07_journal.sh
|
|
# Version: v0.0.1 | Status: DEVELOPMENT
|
|
# Target: Alpine Linux x86-64 (tinkerpad / ThinkPad T480)
|
|
# ---------------------------------------------------------------------------
|
|
# Minimal Tier subscript: journal — python3, pipx (apk), jrnl (pipx install).
|
|
# Defines install_minimal_journal().
|
|
# ---------------------------------------------------------------------------
|
|
|
|
install_minimal_journal() {
|
|
log_info "--- minimal/07_journal: python3, pipx, jrnl ---"
|
|
|
|
install_pkg "python3"
|
|
install_pkg "pipx"
|
|
|
|
run_test "python3 present" 'command -v python3 >/dev/null 2>&1' warn
|
|
run_test "pipx present" 'command -v pipx >/dev/null 2>&1' warn
|
|
|
|
if ! command -v pipx >/dev/null 2>&1; then
|
|
log_warn "pipx not available — skipping jrnl install"
|
|
FAILED_PKGS+=("jrnl (skipped: pipx not available)")
|
|
return 0
|
|
fi
|
|
|
|
log_info "Installing jrnl via pipx..."
|
|
if pipx install jrnl >> "${LOG_FILE}" 2>&1; then
|
|
log_info "Installed: jrnl (via pipx)"
|
|
else
|
|
log_warn "FAILED: jrnl (pipx install) — logged, continuing"
|
|
FAILED_PKGS+=("jrnl (pipx install failed)")
|
|
fi
|
|
|
|
run_test "jrnl present" 'command -v jrnl >/dev/null 2>&1' warn
|
|
}
|
|
|
|
if [[ "${BASH_SOURCE[0]}" == "${0}" ]]; then
|
|
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")/../.." && pwd)"
|
|
SCRIPT_NAME="07_journal"
|
|
source "${SCRIPT_DIR}/lib/ce-common.sh" || { echo "ERROR: ce-common.sh not found"; exit 1; }
|
|
check_not_root
|
|
install_minimal_journal
|
|
print_summary
|
|
fi
|