CloneVendorRepos.sh and CleanVendor.sh resolved vendor/ relative to scripts/ instead of the repo root, so vendor repos were cloned to the wrong location (scripts/vendor) and docker-compose builds (which expect ./vendor at repo root) would fail. BuildAll.sh and StatusCheck.sh had the same issue, cd-ing to scripts/ instead of the repo root before running docker compose. Also updated validate-all.sh with the 10 newer MCP servers that were added after the script was last maintained (firefly-iii, actual, paperless, beszel, gitea, grafana, ha, limesurvey, linkwarden, superset) plus added missing env vars for audiobook-mcp and drawio-mcp.
51 lines
1.1 KiB
Bash
Executable File
51 lines
1.1 KiB
Bash
Executable File
#!/bin/bash
|
|
|
|
# CleanVendor.sh
|
|
# Script to remove all cloned vendor repositories
|
|
|
|
set -e # Exit on error
|
|
|
|
# Colors for output
|
|
RED='\033[0;31m'
|
|
GREEN='\033[0;32m'
|
|
YELLOW='\033[1;33m'
|
|
NC='\033[0m' # No Color
|
|
|
|
echo -e "${YELLOW}=== KNEL-AIMiddleware Vendor Cleanup Script ===${NC}"
|
|
echo ""
|
|
echo -e "${RED}WARNING: This will DELETE all cloned vendor repositories!${NC}"
|
|
echo ""
|
|
read -p "Are you sure you want to continue? (yes/no): " CONFIRM
|
|
|
|
if [ "$CONFIRM" != "yes" ]; then
|
|
echo "Aborted."
|
|
exit 0
|
|
fi
|
|
|
|
# Vendor directory (repo root is parent of scripts/)
|
|
REPO_ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")/.." && pwd)"
|
|
VENDOR_DIR="$REPO_ROOT/vendor"
|
|
|
|
echo ""
|
|
echo "Removing vendor directories..."
|
|
echo ""
|
|
|
|
# Count removed
|
|
COUNT=0
|
|
|
|
# Remove all directories in vendor/ except .gitkeep
|
|
for DIR in "$VENDOR_DIR"/*; do
|
|
if [ -d "$DIR" ]; then
|
|
DIRNAME=$(basename "$DIR")
|
|
echo -e "${RED}[DELETE]${NC} $DIRNAME"
|
|
rm -rf "$DIR"
|
|
((COUNT++))
|
|
fi
|
|
done
|
|
|
|
echo ""
|
|
echo -e "${GREEN}=== Cleanup complete! Removed $COUNT directories ===${NC}"
|
|
echo ""
|
|
echo "To re-clone repositories, run:"
|
|
echo " ./CloneVendorRepos.sh"
|