mirror of
https://github.com/hoellen/dockerfiles.git
synced 2025-09-08 16:17:25 +00:00
boinc
boring-nginx
cowrie
freshrss
ghost
isso
kippo-graph
libresonic
lychee
mastodon
nextcloud
nginx-php
pgbouncer
piwik
privatebin
rtorrent-flood
s6.d
Dockerfile
README.md
config.js
postdl
postrm
rtorrent.rc
run.sh
searx
tor
unmaintained
LICENSE
12 lines
270 B
Bash
12 lines
270 B
Bash
#!/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 &
|