Merge pull request 'fix: rename env vars to match MCP expectations' (#58) from fix/env-variable-names into development
This commit was merged in pull request #58.
This commit is contained in:
@@ -140,7 +140,7 @@ leo-claude-mktplace/
|
|||||||
|
|
||||||
| Level | Location | Purpose |
|
| Level | Location | Purpose |
|
||||||
|-------|----------|---------|
|
|-------|----------|---------|
|
||||||
| System | `~/.config/claude/gitea.env` | Credentials (GITEA_URL, GITEA_TOKEN) |
|
| System | `~/.config/claude/gitea.env` | Credentials (GITEA_API_URL, GITEA_API_TOKEN) |
|
||||||
| Project | `.env` in project root | Repository specification (GITEA_ORG, GITEA_REPO) |
|
| Project | `.env` in project root | Repository specification (GITEA_ORG, GITEA_REPO) |
|
||||||
|
|
||||||
**Note:** `GITEA_ORG` is at project level since different projects may belong to different organizations.
|
**Note:** `GITEA_ORG` is at project level since different projects may belong to different organizations.
|
||||||
|
|||||||
@@ -160,8 +160,8 @@ This marketplace uses a **hybrid configuration** approach:
|
|||||||
│ SYSTEM-LEVEL (once per machine) │
|
│ SYSTEM-LEVEL (once per machine) │
|
||||||
│ ~/.config/claude/ │
|
│ ~/.config/claude/ │
|
||||||
├─────────────────────────────────────────────────────────────────┤
|
├─────────────────────────────────────────────────────────────────┤
|
||||||
│ gitea.env │ GITEA_URL, GITEA_TOKEN │
|
│ gitea.env │ GITEA_API_URL, GITEA_API_TOKEN │
|
||||||
│ netbox.env │ NETBOX_URL, NETBOX_TOKEN │
|
│ netbox.env │ NETBOX_API_URL, NETBOX_API_TOKEN │
|
||||||
│ git-flow.env │ GIT_WORKFLOW_STYLE, GIT_DEFAULT_BASE, etc. │
|
│ git-flow.env │ GIT_WORKFLOW_STYLE, GIT_DEFAULT_BASE, etc. │
|
||||||
└─────────────────────────────────────────────────────────────────┘
|
└─────────────────────────────────────────────────────────────────┘
|
||||||
│
|
│
|
||||||
@@ -250,8 +250,8 @@ mkdir -p ~/.config/claude
|
|||||||
|
|
||||||
# Gitea configuration (credentials only)
|
# Gitea configuration (credentials only)
|
||||||
cat > ~/.config/claude/gitea.env << 'EOF'
|
cat > ~/.config/claude/gitea.env << 'EOF'
|
||||||
GITEA_URL=https://gitea.example.com
|
GITEA_API_URL=https://gitea.example.com
|
||||||
GITEA_TOKEN=your_token_here
|
GITEA_API_TOKEN=your_token_here
|
||||||
EOF
|
EOF
|
||||||
chmod 600 ~/.config/claude/gitea.env
|
chmod 600 ~/.config/claude/gitea.env
|
||||||
```
|
```
|
||||||
@@ -298,14 +298,14 @@ Located in `~/.config/claude/`:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# ~/.config/claude/gitea.env
|
# ~/.config/claude/gitea.env
|
||||||
GITEA_URL=https://gitea.example.com
|
GITEA_API_URL=https://gitea.example.com/api/v1
|
||||||
GITEA_TOKEN=your_gitea_token_here
|
GITEA_API_TOKEN=your_gitea_token_here
|
||||||
```
|
```
|
||||||
|
|
||||||
| Variable | Description | Example |
|
| Variable | Description | Example |
|
||||||
|----------|-------------|---------|
|
|----------|-------------|---------|
|
||||||
| `GITEA_URL` | Gitea base URL (no `/api/v1`) | `https://gitea.example.com` |
|
| `GITEA_API_URL` | Gitea API endpoint (with `/api/v1`) | `https://gitea.example.com/api/v1` |
|
||||||
| `GITEA_TOKEN` | Personal access token | `abc123...` |
|
| `GITEA_API_TOKEN` | Personal access token | `abc123...` |
|
||||||
|
|
||||||
**Note:** `GITEA_ORG` is configured at the project level (see below) since different projects may belong to different organizations.
|
**Note:** `GITEA_ORG` is configured at the project level (see below) since different projects may belong to different organizations.
|
||||||
|
|
||||||
@@ -323,14 +323,14 @@ GITEA_TOKEN=your_gitea_token_here
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
# ~/.config/claude/netbox.env
|
# ~/.config/claude/netbox.env
|
||||||
NETBOX_URL=https://netbox.example.com
|
NETBOX_API_URL=https://netbox.example.com
|
||||||
NETBOX_TOKEN=your_netbox_token_here
|
NETBOX_API_TOKEN=your_netbox_token_here
|
||||||
```
|
```
|
||||||
|
|
||||||
| Variable | Description | Example |
|
| Variable | Description | Example |
|
||||||
|----------|-------------|---------|
|
|----------|-------------|---------|
|
||||||
| `NETBOX_URL` | NetBox base URL | `https://netbox.example.com` |
|
| `NETBOX_API_URL` | NetBox base URL | `https://netbox.example.com` |
|
||||||
| `NETBOX_TOKEN` | API token | `abc123...` |
|
| `NETBOX_API_TOKEN` | API token | `abc123...` |
|
||||||
|
|
||||||
### Git-Flow Configuration
|
### Git-Flow Configuration
|
||||||
|
|
||||||
@@ -456,7 +456,7 @@ This helps when you:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/user"
|
curl -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/user"
|
||||||
```
|
```
|
||||||
|
|
||||||
### Verify Project Setup
|
### Verify Project Setup
|
||||||
@@ -492,7 +492,7 @@ stat ~/.config/claude/gitea.env
|
|||||||
```bash
|
```bash
|
||||||
# Test token directly
|
# Test token directly
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/user"
|
curl -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/user"
|
||||||
```
|
```
|
||||||
|
|
||||||
If you get 401, regenerate your token in Gitea.
|
If you get 401, regenerate your token in Gitea.
|
||||||
|
|||||||
@@ -84,8 +84,8 @@ cat > ~/.config/claude/netbox.env << 'EOF'
|
|||||||
# NetBox API Configuration
|
# NetBox API Configuration
|
||||||
# Generated by cmdb-assistant /initial-setup
|
# Generated by cmdb-assistant /initial-setup
|
||||||
|
|
||||||
NETBOX_URL=<USER_PROVIDED_URL>
|
NETBOX_API_URL=<USER_PROVIDED_URL>
|
||||||
NETBOX_TOKEN=PASTE_YOUR_TOKEN_HERE
|
NETBOX_API_TOKEN=PASTE_YOUR_TOKEN_HERE
|
||||||
EOF
|
EOF
|
||||||
chmod 600 ~/.config/claude/netbox.env
|
chmod 600 ~/.config/claude/netbox.env
|
||||||
```
|
```
|
||||||
@@ -120,7 +120,7 @@ Use AskUserQuestion:
|
|||||||
### Step 4.1: Test Configuration (if token was added)
|
### Step 4.1: Test Configuration (if token was added)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/netbox.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Token $NETBOX_TOKEN" "$NETBOX_URL/api/"
|
source ~/.config/claude/netbox.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: Token $NETBOX_API_TOKEN" "$NETBOX_API_URL/api/"
|
||||||
```
|
```
|
||||||
|
|
||||||
Report result:
|
Report result:
|
||||||
|
|||||||
@@ -97,8 +97,8 @@ cat > ~/.config/claude/gitea.env << 'EOF'
|
|||||||
# Generated by pr-review /initial-setup
|
# Generated by pr-review /initial-setup
|
||||||
# Note: GITEA_ORG is configured per-project in .env
|
# Note: GITEA_ORG is configured per-project in .env
|
||||||
|
|
||||||
GITEA_URL=<USER_PROVIDED_URL>
|
GITEA_API_URL=<USER_PROVIDED_URL>
|
||||||
GITEA_TOKEN=PASTE_YOUR_TOKEN_HERE
|
GITEA_API_TOKEN=PASTE_YOUR_TOKEN_HERE
|
||||||
EOF
|
EOF
|
||||||
chmod 600 ~/.config/claude/gitea.env
|
chmod 600 ~/.config/claude/gitea.env
|
||||||
```
|
```
|
||||||
@@ -163,7 +163,7 @@ git remote get-url origin 2>/dev/null | sed 's/.*[:/]\([^/]*\)\.git$/\1/' | sed
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<detected-org>/<detected-repo>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<detected-org>/<detected-repo>"
|
||||||
```
|
```
|
||||||
|
|
||||||
| HTTP Code | Action |
|
| HTTP Code | Action |
|
||||||
@@ -229,7 +229,7 @@ If customize, ask about:
|
|||||||
### Step 4.1: Test Configuration (if token was added)
|
### Step 4.1: Test Configuration (if token was added)
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/user"
|
source ~/.config/claude/gitea.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/user"
|
||||||
```
|
```
|
||||||
|
|
||||||
Report result:
|
Report result:
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ Fast setup for a new project when system-level configuration is already complete
|
|||||||
### Step 1: Verify System Configuration
|
### Step 1: Verify System Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_API_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If SYSTEM_MISSING:**
|
**If SYSTEM_MISSING:**
|
||||||
@@ -67,7 +67,7 @@ git remote get-url origin 2>/dev/null | sed 's/.*[:/]\([^/]*\)\.git$/\1/' | sed
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<detected-org>/<detected-repo>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<detected-org>/<detected-repo>"
|
||||||
```
|
```
|
||||||
|
|
||||||
| HTTP Code | Action |
|
| HTTP Code | Action |
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Updates project configuration when the git remote URL has changed.
|
|||||||
## Step 1: Verify System Configuration
|
## Step 1: Verify System Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_API_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If SYSTEM_MISSING:** Run `/initial-setup` first.
|
**If SYSTEM_MISSING:** Run `/initial-setup` first.
|
||||||
@@ -59,7 +59,7 @@ Extract organization and repository from URL.
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<NEW_ORG>/<NEW_REPO>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<NEW_ORG>/<NEW_REPO>"
|
||||||
```
|
```
|
||||||
|
|
||||||
| Code | Action |
|
| Code | Action |
|
||||||
|
|||||||
@@ -19,7 +19,7 @@ This command guides the user through complete projman setup interactively. It ha
|
|||||||
**FIRST**, check if system-level setup is already complete:
|
**FIRST**, check if system-level setup is already complete:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep -v "example.com" | grep "GITEA_TOKEN=" && echo "SYSTEM_CONFIGURED" || echo "SYSTEM_NEEDS_SETUP"
|
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep -v "example.com" | grep "GITEA_API_TOKEN=" && echo "SYSTEM_CONFIGURED" || echo "SYSTEM_NEEDS_SETUP"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If SYSTEM_CONFIGURED:**
|
**If SYSTEM_CONFIGURED:**
|
||||||
@@ -168,8 +168,8 @@ cat > ~/.config/claude/gitea.env << 'EOF'
|
|||||||
# Generated by /initial-setup
|
# Generated by /initial-setup
|
||||||
# Note: GITEA_ORG is configured per-project in .env
|
# Note: GITEA_ORG is configured per-project in .env
|
||||||
|
|
||||||
GITEA_URL=<USER_PROVIDED_URL>
|
GITEA_API_URL=<USER_PROVIDED_URL>
|
||||||
GITEA_TOKEN=PASTE_YOUR_TOKEN_HERE
|
GITEA_API_TOKEN=PASTE_YOUR_TOKEN_HERE
|
||||||
EOF
|
EOF
|
||||||
chmod 600 ~/.config/claude/gitea.env
|
chmod 600 ~/.config/claude/gitea.env
|
||||||
```
|
```
|
||||||
@@ -225,7 +225,7 @@ Use AskUserQuestion:
|
|||||||
Read the config file and verify it has non-placeholder values:
|
Read the config file and verify it has non-placeholder values:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env && echo "URL: $GITEA_URL" && echo "TOKEN_LENGTH: ${#GITEA_TOKEN}"
|
source ~/.config/claude/gitea.env && echo "URL: $GITEA_API_URL" && echo "TOKEN_LENGTH: ${#GITEA_API_TOKEN}"
|
||||||
```
|
```
|
||||||
|
|
||||||
If TOKEN_LENGTH is less than 10 or contains "PASTE" or "your_", the token hasn't been set properly.
|
If TOKEN_LENGTH is less than 10 or contains "PASTE" or "your_", the token hasn't been set properly.
|
||||||
@@ -235,7 +235,7 @@ If TOKEN_LENGTH is less than 10 or contains "PASTE" or "your_", the token hasn't
|
|||||||
**Test connectivity (optional but recommended):**
|
**Test connectivity (optional but recommended):**
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/user"
|
source ~/.config/claude/gitea.env && curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/user"
|
||||||
```
|
```
|
||||||
|
|
||||||
- **200:** Success! Credentials are valid.
|
- **200:** Success! Credentials are valid.
|
||||||
@@ -329,7 +329,7 @@ git remote get-url origin 2>/dev/null | sed 's/.*[:/]\([^/]*\)\.git$/\1/' | sed
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<detected-org>/<detected-repo>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<detected-org>/<detected-repo>"
|
||||||
```
|
```
|
||||||
|
|
||||||
**Based on response:**
|
**Based on response:**
|
||||||
|
|||||||
@@ -24,7 +24,7 @@ Fast setup for a new project when system-level configuration is already complete
|
|||||||
Quickly verify system setup is complete:
|
Quickly verify system setup is complete:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_API_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If SYSTEM_MISSING:**
|
**If SYSTEM_MISSING:**
|
||||||
@@ -107,7 +107,7 @@ Verify the repository exists and is accessible:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<detected-org>/<detected-repo>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<detected-org>/<detected-repo>"
|
||||||
```
|
```
|
||||||
|
|
||||||
| HTTP Code | Action |
|
| HTTP Code | Action |
|
||||||
|
|||||||
@@ -17,7 +17,7 @@ Updates project configuration when the git remote URL has changed (repository mo
|
|||||||
## Step 1: Verify System Configuration
|
## Step 1: Verify System Configuration
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
cat ~/.config/claude/gitea.env 2>/dev/null | grep -v "^#" | grep -v "PASTE_YOUR" | grep "GITEA_API_TOKEN=" && echo "SYSTEM_OK" || echo "SYSTEM_MISSING"
|
||||||
```
|
```
|
||||||
|
|
||||||
**If SYSTEM_MISSING:** Stop and instruct user to run `/initial-setup` first.
|
**If SYSTEM_MISSING:** Stop and instruct user to run `/initial-setup` first.
|
||||||
@@ -109,7 +109,7 @@ Verify the new repository exists and is accessible:
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
source ~/.config/claude/gitea.env
|
source ~/.config/claude/gitea.env
|
||||||
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_TOKEN" "$GITEA_URL/api/v1/repos/<NEW_ORG>/<NEW_REPO>"
|
curl -s -o /dev/null -w "%{http_code}" -H "Authorization: token $GITEA_API_TOKEN" "$GITEA_API_URL/repos/<NEW_ORG>/<NEW_REPO>"
|
||||||
```
|
```
|
||||||
|
|
||||||
| HTTP Code | Action |
|
| HTTP Code | Action |
|
||||||
|
|||||||
@@ -134,10 +134,10 @@ setup_config_templates() {
|
|||||||
cat > "$config_dir/gitea.env" << 'EOF'
|
cat > "$config_dir/gitea.env" << 'EOF'
|
||||||
# Gitea API Configuration
|
# Gitea API Configuration
|
||||||
# Update these values with your Gitea instance details
|
# Update these values with your Gitea instance details
|
||||||
|
# Note: GITEA_ORG is configured per-project in .env
|
||||||
|
|
||||||
GITEA_URL=https://gitea.example.com
|
GITEA_API_URL=https://gitea.example.com/api/v1
|
||||||
GITEA_TOKEN=your_gitea_token_here
|
GITEA_API_TOKEN=your_gitea_token_here
|
||||||
GITEA_ORG=your_organization_name
|
|
||||||
EOF
|
EOF
|
||||||
chmod 600 "$config_dir/gitea.env"
|
chmod 600 "$config_dir/gitea.env"
|
||||||
log_success "gitea.env template created"
|
log_success "gitea.env template created"
|
||||||
@@ -152,8 +152,8 @@ EOF
|
|||||||
# NetBox API Configuration
|
# NetBox API Configuration
|
||||||
# Update these values with your NetBox instance details
|
# Update these values with your NetBox instance details
|
||||||
|
|
||||||
NETBOX_URL=https://netbox.example.com
|
NETBOX_API_URL=https://netbox.example.com/api
|
||||||
NETBOX_TOKEN=your_netbox_token_here
|
NETBOX_API_TOKEN=your_netbox_token_here
|
||||||
EOF
|
EOF
|
||||||
chmod 600 "$config_dir/netbox.env"
|
chmod 600 "$config_dir/netbox.env"
|
||||||
log_success "netbox.env template created"
|
log_success "netbox.env template created"
|
||||||
@@ -189,8 +189,8 @@ validate_config() {
|
|||||||
# Check Gitea config has real values
|
# Check Gitea config has real values
|
||||||
if [[ -f "$config_dir/gitea.env" ]]; then
|
if [[ -f "$config_dir/gitea.env" ]]; then
|
||||||
source "$config_dir/gitea.env"
|
source "$config_dir/gitea.env"
|
||||||
if [[ "${GITEA_TOKEN:-}" == "your_gitea_token_here" ]] || [[ -z "${GITEA_TOKEN:-}" ]]; then
|
if [[ "${GITEA_API_TOKEN:-}" == "your_gitea_token_here" ]] || [[ -z "${GITEA_API_TOKEN:-}" ]]; then
|
||||||
log_todo "Update GITEA_TOKEN in ~/.config/claude/gitea.env"
|
log_todo "Update GITEA_API_TOKEN in ~/.config/claude/gitea.env"
|
||||||
else
|
else
|
||||||
log_success "Gitea configuration appears valid"
|
log_success "Gitea configuration appears valid"
|
||||||
fi
|
fi
|
||||||
@@ -199,8 +199,8 @@ validate_config() {
|
|||||||
# Check NetBox config has real values
|
# Check NetBox config has real values
|
||||||
if [[ -f "$config_dir/netbox.env" ]]; then
|
if [[ -f "$config_dir/netbox.env" ]]; then
|
||||||
source "$config_dir/netbox.env"
|
source "$config_dir/netbox.env"
|
||||||
if [[ "${NETBOX_TOKEN:-}" == "your_netbox_token_here" ]] || [[ -z "${NETBOX_TOKEN:-}" ]]; then
|
if [[ "${NETBOX_API_TOKEN:-}" == "your_netbox_token_here" ]] || [[ -z "${NETBOX_API_TOKEN:-}" ]]; then
|
||||||
log_todo "Update NETBOX_TOKEN in ~/.config/claude/netbox.env"
|
log_todo "Update NETBOX_API_TOKEN in ~/.config/claude/netbox.env"
|
||||||
else
|
else
|
||||||
log_success "NetBox configuration appears valid"
|
log_success "NetBox configuration appears valid"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Reference in New Issue
Block a user