summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAaron Griffin <aaronmgriffin@gmail.com>2009-07-17 21:51:58 +0200
committerAaron Griffin <aaronmgriffin@gmail.com>2009-07-17 21:51:58 +0200
commit3bcb9d8c78857cb40110616c3fe08259c577fdca (patch)
treeea33fb387e007411d9071f9f426ae6615ea4e00a
parent7a2109fe8645eae4bc0024c057d399d67e0f0035 (diff)
downloaddbscripts-3bcb9d8c78857cb40110616c3fe08259c577fdca.tar.gz
dbscripts-3bcb9d8c78857cb40110616c3fe08259c577fdca.tar.xz
ftpdir-cleanup: Add configurable destdir
Signed-off-by: Aaron Griffin <aaronmgriffin@gmail.com>
-rw-r--r--config2
-rwxr-xr-xcron-jobs/ftpdir-cleanup5
2 files changed, 6 insertions, 1 deletions
diff --git a/config b/config
index 867d28e..425709a 100644
--- a/config
+++ b/config
@@ -6,6 +6,8 @@ SVNREPO_extra="file:///srv/svn-packages"
SVNREPO_testing="file:///srv/svn-packages"
SVNREPO_community="file:///srv/svn-community"
+CLEANUP_DESTDIR="/srv/package-cleanup"
+
STAGING="$HOME/staging"
TMPDIR="/srv/tmp"
ARCHES=(i686 x86_64)
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup
index 6c295c9..77a0843 100755
--- a/cron-jobs/ftpdir-cleanup
+++ b/cron-jobs/ftpdir-cleanup
@@ -28,9 +28,12 @@ trap ctrl_c 2
#adjust the nice level to run at a lower priority
/usr/bin/renice +10 -p $$ > /dev/null
+#Get our destination dir
+. $(dirname $0)/../config
+
for repo in $repos; do
for arch in $arches; do
- $(dirname $0)/../misc-scripts/ftpdir-cleanup $repo $arch
+ $(dirname $0)/../misc-scripts/ftpdir-cleanup $repo $arch $CLEANUP_DESTDIR
done
done