#!/bin/bash

# Sync with a local web server and render an index page

args="$@"

for net in bitcoin testnet; do
  if [ -e ~/.txoo/$net/public ]; then
    rsync -a ~/.txoo/$net/public/ /var/www/html/txoo/$net/
    /usr/local/bin/render-txoo /var/www/html/txoo/$net/
  fi
done
