backend: harden rootless app lifecycle orchestration

This commit is contained in:
archipelago
2026-06-11 00:24:32 -04:00
parent 09ec64932f
commit c393b96da3
56 changed files with 7543 additions and 1994 deletions

View File

@@ -6,6 +6,19 @@ set -e
echo "🐳 Configuring Podman for rootless operation..."
if ! command -v catatonit >/dev/null 2>&1; then
if command -v apt-get >/dev/null 2>&1; then
apt-get update || true
apt-get install -y catatonit || true
elif command -v dnf >/dev/null 2>&1; then
dnf install -y catatonit || true
elif command -v apk >/dev/null 2>&1; then
apk add catatonit || true
fi
fi
command -v catatonit >/dev/null 2>&1 || echo "WARNING: catatonit not installed; Podman init-enabled containers may fail"
# Ensure archipelago user exists
if ! id "archipelago" &>/dev/null; then
echo "Creating archipelago user..."