2021-06-18 11:58:37 +00:00
|
|
|
#!/bin/bash
|
2026-07-05 12:34:54 +00:00
|
|
|
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 'get_json forbidden \|blocked' > .blocked_events.txt
|
2021-06-18 11:58:37 +00:00
|
|
|
if [ ! -f .blocked_events.txt ]; then
|
|
|
|
|
echo 'No blocking events'
|
|
|
|
|
else
|
|
|
|
|
cat .blocked_events.txt
|
|
|
|
|
fi
|