]>
Commit | Line | Data |
---|---|---|
6edade10 AM |
1 | #!/bin/sh |
2 | ||
3 | root="/home/services/ftpd/buildlogs" | |
4 | ||
5 | if test -f /etc/buildlogs-mover.conf ; then | |
6 | . /etc/buildlogs-mover.conf | |
7 | fi | |
8 | ||
9 | ||
10 | inotifywait -q -m -r -e move $root/*/*/.new | \ | |
11 | while read path change file; do | |
12 | [ "$change" != "MOVED_TO" ] && continue | |
13 | /bin/su - ftp -s /bin/sh -c "/home/services/buildlogs/buildlogs-mover.sh" | |
14 | done |