#!/usr/bin/env bash # First-time vault setup + first secret. # # This script is interactive: it prompts for the vault passphrase twice # (Touch ID / PAM is NOT required for init — there is nothing to protect yet). # # Re-run safely? No: `xop init` refuses if the vault already exists. set -euo pipefail cd "$(dirname "$0")/.." ./target/release/xop init echo "Vault created. Now store a secret:" echo " echo \"hunter2\" | ./target/release/xop set DB_PASS" # Uncomment to add a sample secret automatically (you will need to pipe the value): # echo "hunter2" | ./target/release/xop set DB_PASS