fix(setup): seed .env template into ~/.secrets/aipass/ on bootstrap (#29)

setup.sh now copies .env.example to ~/.secrets/aipass/.env so new users
get the key template in the right place automatically. Updated .env.example
header to point to the secrets location.

Co-authored-by: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
AIPass
2026-03-08 13:26:23 -07:00
committed by GitHub
co-authored by Claude Opus 4.6
parent ca8b3a2912
commit 09e759a8a4
2 changed files with 8 additions and 2 deletions
+2 -2
View File
@@ -1,6 +1,6 @@
# AIPass API Keys
# Copy this file to .env and fill in your keys:
# cp .env.example .env
# Location: ~/.secrets/aipass/.env (setup.sh copies this automatically)
# Do NOT put real keys in the repo — this is just a template.
# OpenAI
OPENAI_API_KEY=
+6
View File
@@ -79,6 +79,12 @@ else
echo "Secrets directory already exists — skipping"
fi
# --- Seed .env template into secrets ---
if [ ! -f "$SECRETS_DIR/.env" ] && [ -f ".env.example" ]; then
cp .env.example "$SECRETS_DIR/.env"
echo " Copied .env.example → ~/.secrets/aipass/.env (add your API keys there)"
fi
# --- Generate branch registry ---
if [ ! -f "AIPASS_REGISTRY.json" ]; then
echo "Generating AIPASS_REGISTRY.json ..."