1
0
mirror of https://github.com/hoellen/dockerfiles.git synced 2025-07-28 11:55:42 +00:00
Files
boring-nginx
cowrie
cryptpad
freshrss
ghost
isso
kippo-graph
libresonic
lychee
mastodon
mediawiki
nextcloud
nginx-php
parsoid
pgbouncer
piwik
privatebin
rtorrent-flood
s6.d
Dockerfile
README.md
config.js
postdl
postrm
rtorrent.rc
run.sh
searx
tor
unmaintained
LICENSE
dockerfiles/rtorrent-flood/postrm

12 lines
270 B
Plaintext
Raw Normal View History

2016-09-09 17:52:00 +02:00
#!/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 &