#!/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 or if grep -q "" "$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!"