Skip to content

Commit

Permalink
Relax CONFIG_PATH check to warning
Browse files Browse the repository at this point in the history
  • Loading branch information
brendan-kellam committed Sep 6, 2024
1 parent 184eabd commit 577d05c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 4 deletions.
8 changes: 4 additions & 4 deletions entrypoint.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
#!/bin/sh
set -e

# Check if the configuration file exists
if [ ! -f "$CONFIG_PATH" ]; then
echo "Error: Configuration file not found at $CONFIG_PATH. Please check that you mounted a volume to $DATA_DIR, and the volume contains a config.json file at the root."
exit 1

# Check if CONFIG_PATH is set
if [ -z "$CONFIG_PATH" ]; then
echo "\e[33mWarning: CONFIG_PATH environment variable is not set.\e[0m"
fi

# Check if GITHUB_TOKEN is set
Expand Down
9 changes: 9 additions & 0 deletions sample-config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
{
"$schema": "./schemas/zoekt-mirror.json",
"Configs": [
{
"Type": "github",
"GitHubOrg": "TaqlaAI"
}
]
}

0 comments on commit 577d05c

Please sign in to comment.