atproto user agency toolkit for individuals and groups
1#!/bin/bash
2# Show recent logs for p2pds nodes
3NODE=${1:-0}
4if [ "$NODE" = "1" ] || [ "$NODE" = "0" ]; then
5 if [ -f /tmp/p2pds-node1.log ]; then
6 echo "=== NODE 1 ==="
7 tail -30 /tmp/p2pds-node1.log
8 echo ""
9 fi
10fi
11if [ "$NODE" = "2" ] || [ "$NODE" = "0" ]; then
12 if [ -f /tmp/p2pds-node2.log ]; then
13 echo "=== NODE 2 ==="
14 tail -30 /tmp/p2pds-node2.log
15 fi
16fi