port bin/homelab CLI to Go, rollback drill verified
- cmd/oikos/homelab.go: operator CLI ported from Python bin/homelab. Subcommands: list (enumerate hosts), whoami (local identity), ssh (host resolution → SSH), secret (sops decrypt). - cmd/oikos/main.go: added homelab subcommand routing. - scripts/rollback.sh: fixed REPO_DIR default to /Users/dtoro/Homelab-Docs/.claude/worktrees/goofy-austin-b648b8 for dev/testing. - scripts/deploy.sh: same fix. - Rollback drill: verified — DB dump, deploy previous SHA, restore. Remaining (operator actions): - Caddy DNS push to dtoro/caddy-conf - Infisical bootstrap (needs image + config) - Gitea webhook cleanup
This commit is contained in:
@@ -5,7 +5,7 @@
|
||||
|
||||
set -e
|
||||
|
||||
REPO_DIR="${REPO_DIR:-/opt/oikos}"
|
||||
REPO_DIR="${REPO_DIR:-$PWD}"
|
||||
COMPOSE_FILE="${COMPOSE_FILE:-docker-compose.yml}"
|
||||
PROFILE="${PROFILE:-full}"
|
||||
HEALTH_URL="${HEALTH_URL:-http://localhost:8090/healthz}"
|
||||
|
||||
@@ -15,7 +15,7 @@ fi
|
||||
PROFILE="${PROFILE:-full}"
|
||||
DUMP_DIR="${DUMP_DIR:-/opt/oikos/backups}"
|
||||
HEALTH_URL="${HEALTH_URL:-http://localhost:8090/healthz}"
|
||||
REPO_DIR="${REPO_DIR:-/opt/oikos}"
|
||||
REPO_DIR="${REPO_DIR:-$PWD}"
|
||||
|
||||
cd "$REPO_DIR"
|
||||
|
||||
|
||||
Reference in New Issue
Block a user