mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-07-02 07:05:42 +00:00
UNMAINTAINED
This commit is contained in:
11
unmaintained/rtorrent-flood/postrm
Normal file
11
unmaintained/rtorrent-flood/postrm
Normal file
@ -0,0 +1,11 @@
|
||||
#!/bin/sh
|
||||
|
||||
(sleep 10; find /data/Media -type l | while read in; do
|
||||
file "$in" | grep "broken symbolic link"
|
||||
if [ $? -ne 1 ]; then
|
||||
echo "Delete $in"
|
||||
rm -f "$in"
|
||||
fi
|
||||
done
|
||||
|
||||
find /data/Media/ -type d -empty -exec rm -r {} \;) >> /tmp/postrm.log &
|
Reference in New Issue
Block a user