mirror of
https://github.com/Kpa-clawbot/meshcore-analyzer.git
synced 2026-08-28 16:15:06 +00:00
fix: staging config.json directory mount and wrong source file
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
This commit is contained in:
@@ -279,10 +279,12 @@ jobs:
|
||||
|
||||
# Ensure staging config exists (docker creates a directory if bind mount source missing)
|
||||
STAGING_DATA="${STAGING_DATA_DIR:-$HOME/meshcore-staging-data}"
|
||||
mkdir -p "$STAGING_DATA"
|
||||
# Remove directory-masquerading-as-file left by failed docker mount
|
||||
[ -d "$STAGING_DATA/config.json" ] && rm -rf "$STAGING_DATA/config.json"
|
||||
if [ ! -f "$STAGING_DATA/config.json" ]; then
|
||||
echo "Staging config missing — copying from repo config.example.json"
|
||||
mkdir -p "$STAGING_DATA"
|
||||
cp config.example.json "$STAGING_DATA/config.json"
|
||||
echo "Staging config missing — copying from repo config.json"
|
||||
cp config.json "$STAGING_DATA/config.json" 2>/dev/null || cp config.example.json "$STAGING_DATA/config.json"
|
||||
fi
|
||||
|
||||
docker compose -f "$STAGING_COMPOSE_FILE" -p corescope-staging up -d staging-go
|
||||
|
||||
Reference in New Issue
Block a user