From: Joerg Jaspert Date: Tue, 20 Jan 2009 21:14:06 +0000 (+0100) Subject: moveftp.sh X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=aa0907e8e139c58917b4343df6b0901289bfe027;p=dak.git moveftp.sh 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 --- diff --git a/scripts/debian/moveftp.sh b/scripts/debian/moveftp.sh new file mode 100755 index 00000000..6aecc289 --- /dev/null +++ b/scripts/debian/moveftp.sh @@ -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} "{}" +