#!/bin/bash
# Regenerate b2-regions.php and deploy to WWW2
# Called after camera provisioning or manually
php /home/subdomains/livetimelapse/public_html/php/generate-b2-regions.php && \
  scp -P 7867 /home/subdomains/livetimelapse/public_html/php/b2-regions.php claude@139.99.210.3:/var/www/html/php/b2-regions.php 2>/dev/null && \
  echo "b2-regions.php deployed to WWW2"
