Files
epicyon/scripts/accept
T

18 lines
449 B
Bash
Raw Normal View History

2023-08-28 18:55:24 +01:00
#!/bin/bash
dir_name="epicyon"
if [ ! -d /etc/${dir_name} ]; then
if [ -d /opt/epicyon-tor ]; then
dir_name="epicyon-tor"
elif [ -d /opt/epicyon-i2p ]; then
dir_name="epicyon-i2p"
elif [ -d /opt/epicyon-yggdrasil ]; then
dir_name="epicyon-yggdrasil"
fi
fi
journalctl -u ${dir_name} | grep -i ' follow accept ' > .accept_events.txt
2023-08-28 18:55:24 +01:00
if [ ! -f .accept_events.txt ]; then
2023-08-28 19:06:10 +01:00
echo 'No follow Accept events'
2023-08-28 18:55:24 +01:00
else
cat .accept_events.txt
fi