initial: xop source tree
This commit is contained in:
commit
e4c93e1e13
43 files changed
+7599
No files matched your search
Executable
+19
@@ -0,0 +1,19 @@
|
||||
#!/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
|
||||
Reference in new issue
Block a user