Collection of operational skills for VaultMesh infrastructure including: - backup-sovereign: Backup and recovery operations - btc-anchor: Bitcoin anchoring - cloudflare-tunnel-manager: Cloudflare tunnel management - container-registry: Container registry operations - disaster-recovery: Disaster recovery procedures - dns-sovereign: DNS management - eth-anchor: Ethereum anchoring - gitea-bootstrap: Gitea setup and configuration - hetzner-bootstrap: Hetzner server provisioning - merkle-forest: Merkle tree operations - node-hardening: Node security hardening - operator-bootstrap: Operator initialization - proof-verifier: Cryptographic proof verification - rfc3161-anchor: RFC3161 timestamping - secrets-vault: Secrets management 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Sonnet 4.5 <noreply@anthropic.com>
35 lines
919 B
Bash
35 lines
919 B
Bash
#!/usr/bin/env bash
|
|
set -euo pipefail
|
|
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
|
|
SKILL_ROOT="$(dirname "$(dirname "$SCRIPT_DIR")")"
|
|
source "$SKILL_ROOT/scripts/_common.sh"
|
|
|
|
: "${MODE:=docker}"
|
|
: "${DATA_DIR:=$HOME/gitea}"
|
|
|
|
compose_cmd() {
|
|
if command -v docker-compose >/dev/null 2>&1; then
|
|
echo "docker-compose"
|
|
else
|
|
echo "docker compose"
|
|
fi
|
|
}
|
|
|
|
main() {
|
|
confirm_gate
|
|
if [[ "$MODE" == "docker" ]]; then
|
|
if [[ -f "$SKILL_ROOT/outputs/compose.yml" ]]; then
|
|
log_warn "Stopping compose stack..."
|
|
cd "$SKILL_ROOT/outputs"
|
|
$(compose_cmd) -f compose.yml down || true
|
|
else
|
|
log_warn "No compose.yml found; attempting to stop container 'gitea'..."
|
|
docker rm -f gitea 2>/dev/null || true
|
|
fi
|
|
else
|
|
log_warn "Native mode rollback scaffold (stop gitea service manually if configured)."
|
|
fi
|
|
log_info "Rollback complete. Data dir preserved at: $DATA_DIR"
|
|
}
|
|
main "$@"
|