#!/usr/bin/env bash
echo "=== /var/www/html contents ==="
ls -la /var/www/html/
echo ""
echo "=== Any account.bak-* ? ==="
ls -la /var/www/html/ | grep -i account || echo "(none)"
echo ""
echo "=== Apache vhost still pointing at /var/www/html/account/public ? ==="
grep -h DocumentRoot /etc/apache2/sites-enabled/account.allgifted.com*.conf 2>/dev/null
echo ""
echo "=== curl + apache log ==="
curl -s -o /dev/null -w "https://account.allgifted.com/ → %{http_code}\n" https://account.allgifted.com/
tail -n 5 /var/log/apache2/account_error.log 2>/dev/null || echo "(no account_error.log)"
echo ""
echo "=== /tmp/convert-account.log (full) ==="
cat /tmp/convert-account.log 2>/dev/null || echo "(no log)"
