From 57776ab029b337ec72adcbfcdd8a3286f1281fd8 Mon Sep 17 00:00:00 2001 From: Jakub Dorfman Date: Sun, 26 Apr 2026 22:40:39 +0200 Subject: [PATCH] Update paths in configuration files to use /var/lib/containers instead of /home/reudy/containers Co-authored-by: Copilot --- README.md | 10 +++++----- panel-api.py | 2 +- panelctl.sh | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index aeb4a61..c72551b 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,13 @@ This repository now includes a small helper command named panelctl for Phase 2. Base directory: -- /home/reudy/containers +- /var/lib/containers Generated structure: -- /home/reudy/containers/stacks//compose.yaml -- /home/reudy/containers/volumes//data -- /home/reudy/containers/routes/.caddy -- /home/reudy/containers/state/apps/.env +- /var/lib/containers/stacks//compose.yaml +- /var/lib/containers/volumes//data +- /var/lib/containers/routes/.caddy +- /var/lib/containers/state/apps/.env Quick workflow: 1. Create a new app definition: diff --git a/panel-api.py b/panel-api.py index 090b88d..2df33dc 100644 --- a/panel-api.py +++ b/panel-api.py @@ -9,7 +9,7 @@ from urllib.parse import urlparse PANELCTL = os.environ.get("PANELCTL_PATH", "/run/current-system/sw/bin/panelctl") BIND = os.environ.get("PANEL_API_BIND", "127.0.0.1") PORT = int(os.environ.get("PANEL_API_PORT", "9911")) -BASE_DIR = os.environ.get("PANEL_BASE_DIR", "/home/reudy/containers") +BASE_DIR = os.environ.get("PANEL_BASE_DIR", "/var/lib/containers") INDEX_HTML = """ diff --git a/panelctl.sh b/panelctl.sh index 446b22a..14fe331 100644 --- a/panelctl.sh +++ b/panelctl.sh @@ -1,7 +1,7 @@ #!/usr/bin/env bash set -euo pipefail -BASE_DIR="${PANEL_BASE_DIR:-/home/reudy/containers}" +BASE_DIR="${PANEL_BASE_DIR:-/var/lib/containers}" STACKS_DIR="${BASE_DIR}/stacks" VOLUMES_DIR="${BASE_DIR}/volumes" ROUTES_DIR="${BASE_DIR}/routes"