]> git.decadent.org.uk Git - dak.git/commitdiff
moveftp.sh
authorJoerg Jaspert <joerg@debian.org>
Tue, 20 Jan 2009 21:14:06 +0000 (22:14 +0100)
committerJoerg Jaspert <joerg@debian.org>
Tue, 20 Jan 2009 21:14:06 +0000 (22:14 +0100)
little script to be used on ravel, whenever ravel is hosting
ftp.upload.d.o, so we don't need two queueds

Signed-off-by: Joerg Jaspert <joerg@debian.org>
scripts/debian/moveftp.sh [new file with mode: 0755]

diff --git a/scripts/debian/moveftp.sh b/scripts/debian/moveftp.sh
new file mode 100755 (executable)
index 0000000..6aecc28
--- /dev/null
@@ -0,0 +1,9 @@
+#!/bin/bash
+
+set -e
+set -u
+
+FTPDIR="/org/upload.debian.org/ftp/pub/UploadQueue/"
+SSHDIR="/org/upload.debian.org/UploadQueue/"
+
+yes n | find ${FTPDIR} -type f -mmin +15 -print0 -exec mv -i --target-directory=${SSHDIR} "{}" +