]> git.pld-linux.org Git - projects/buildlogs.git/blame - helpers/buildlogs-inotify-mover.sh
Use lbzcat if available (much faster).
[projects/buildlogs.git] / helpers / buildlogs-inotify-mover.sh
CommitLineData
6edade10
AM
1#!/bin/sh
2
3root="/home/services/ftpd/buildlogs"
4
5if test -f /etc/buildlogs-mover.conf ; then
6 . /etc/buildlogs-mover.conf
7fi
8
9
10inotifywait -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
This page took 0.068611 seconds and 4 git commands to generate.