fix(backup): elevate sudo in Makefile and guard mkdir after root check
Some checks failed
railiance-tests / smoke (push) Has been cancelled

- `make backup` now invokes `sudo tools/cmd/railiance-backup-s2` directly
- Move `mkdir -p` in railiance-backup-s2 to after the root check so the
  script emits a clear error instead of a raw permission-denied failure

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
2026-03-10 22:33:49 +00:00
parent 7e28399f69
commit 4e1a90032b
2 changed files with 3 additions and 2 deletions

View File

@@ -5,7 +5,7 @@ INVENTORY ?= ansible/hosts.ini
##@ Safety Net
backup: ## Backup k3s etcd + Helm values + kubeconfig (age-encrypted, root required)
tools/cmd/railiance-backup-s2
sudo tools/cmd/railiance-backup-s2
restore: ## List available backups and print restore guide
tools/cmd/railiance-restore-s2