#!/bin/bash # Update all quixzoom sites with SSO auth integration echo "🔄 Updating quixzoom sites with SSO auth..." # List of sites to update SITES=( "/home/bernt/.openclaw/workspace/quixzoom-landing-fixed" "/home/bernt/.openclaw/workspace/quixzoom-asia-pages" "/home/bernt/.openclaw/workspace/quixzoom-market-pages" ) AUTH_SNIPPET='' for site in "${SITES[@]}"; do if [ -d "$site" ]; then echo "📁 Processing: $site" # Find all HTML files find "$site" -name "*.html" -type f | while read -r file; do # Check if already has auth snippet if ! grep -q "site-auth-snippet.js" "$file"; then # Add auth snippet before sed -i "s|| $AUTH_SNIPPET\n|" "$file" echo " ✅ Updated: $(basename "$file")" else echo " ⏭️ Already has auth: $(basename "$file")" fi done fi done echo "" echo "✅ All sites updated!" echo "" echo "Next: Deploy updated sites to S3/CloudFront"