#!/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 'image binary\|favicon is not an image\|image size before\|watermark failed\|image metadata removal\|media saved to\|failed to restore backup image\|failed to rename image\|media could not be saved to\|failed to delete backup image\|post_message_to_outbox unable to rename\|rename image upload\|uploaded image saved to\|uploaded image not saved\|final uploaded image size\|creating s2s post with no attached media\|creating c2s post with no attached media\|creating s2s post with attached media\|creating c2s post with attached media' > .image.txt if [ ! -f .image.txt ]; then echo 'No image warnings' else cat .image.txt fi