3 function purgeempty() {
4 log "Purging empty directories in $ftpdir/pool/"
6 if [ ! -z "$(find $ftpdir/pool/ -type d -empty)" ]; then
7 find $ftpdir/pool/ -type d -empty | xargs rmdir;
11 function gitcleanup() {
13 cd ${public}/git/dak.git
15 git update-server-info
16 # now workaround a git bug not honoring the setup in logs/*
17 # (fix in development, but until it reached backports.org.......)
22 log "Fixing symlinks in $ftpdir"
23 symlinks -d -r $ftpdir