fix(backup): elevate sudo in Makefile and guard mkdir after root check
Some checks failed
railiance-tests / smoke (push) Has been cancelled
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:
2
Makefile
2
Makefile
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user