48ea61cdcc
- Product documentation in docs/products/ - Updated MEMORY.md with product info - quiXzoom Auth Core as AAMOS Identity product
34 lines
1.0 KiB
Bash
Executable File
34 lines
1.0 KiB
Bash
Executable File
#!/bin/bash
|
|
# Deploy Mina Sidor auth bar to all quiXzoom sites
|
|
|
|
SITES=(
|
|
"/home/bernt/.openclaw/workspace/quixzoom-landing-fixed"
|
|
"/home/bernt/.openclaw/workspace/quixzoom-asia-pages"
|
|
"/home/bernt/.openclaw/workspace/quixzoom-market-pages"
|
|
"/home/bernt/.openclaw/workspace/landvex-site/quixzoom"
|
|
)
|
|
|
|
COMPONENT_FILE="/home/bernt/.openclaw/workspace/quixzoom-sso-auth/mina-sidor-component.html"
|
|
|
|
echo "🚀 Deploying Mina Sidor to all quiXzoom sites..."
|
|
|
|
for site in "${SITES[@]}"; do
|
|
if [ -d "$site" ]; then
|
|
echo " 📁 $site"
|
|
|
|
# Find all HTML files
|
|
find "$site" -name "*.html" -type f | while read -r htmlfile; do
|
|
# Check if already has qz-auth-bar
|
|
if ! grep -q "qz-auth-bar" "$htmlfile" 2>/dev/null; then
|
|
# Inject before </body> or </head>
|
|
if grep -q "</body>" "$htmlfile"; then
|
|
sed -i '/<\/body>/e cat '"$COMPONENT_FILE"'' "$htmlfile"
|
|
echo " ✓ Injected: $(basename "$htmlfile")"
|
|
fi
|
|
fi
|
|
done
|
|
fi
|
|
done
|
|
|
|
echo "✅ Mina Sidor deployed to all sites!"
|