fix: make setup auto-installs deps and handles container-owned dirs

- Add check-deps target: auto-installs python3, pip3, cryptography via
  apt (with pip fallback) before running setup_cell.py
- Add sudo chown in setup to reclaim config/data dirs if containers have
  taken ownership (e.g. re-running setup after make start)
- Pass PUID/PGID=$(id -u/g) to docker-compose so linuxserver/wireguard
  chowns its config dir to the host user instead of hardcoded UID 911

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-04-22 09:19:44 -04:00
parent f908a3b74b
commit 1e43f408bc
2 changed files with 19 additions and 7 deletions
+2 -2
View File
@@ -164,8 +164,8 @@ services:
container_name: cell-wireguard
environment:
- SERVERMODE=true
- PUID=911
- PGID=911
- PUID=${PUID:-1000}
- PGID=${PGID:-1000}
ports:
- "51820:51820/udp"
volumes: