diff options
author | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 14:50:37 -0500 |
---|---|---|
committer | Luke Shumaker <LukeShu@sbcglobal.net> | 2013-12-31 14:50:37 -0500 |
commit | f65c477e42f46a3e22b5fbc5da790f9561483770 (patch) | |
tree | 216acb4c2d0fef7720db927ee1c7c1bd8012f022 /cron-jobs/ftpdir-cleanup | |
parent | 99d6b1d0f1f88bf30b75243225cd461afb565f6b (diff) |
clean up
Diffstat (limited to 'cron-jobs/ftpdir-cleanup')
-rwxr-xr-x | cron-jobs/ftpdir-cleanup | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/cron-jobs/ftpdir-cleanup b/cron-jobs/ftpdir-cleanup index a2823d4..e42a1a8 100755 --- a/cron-jobs/ftpdir-cleanup +++ b/cron-jobs/ftpdir-cleanup @@ -22,6 +22,13 @@ clean_pkg() { fi } +script_lock + +for repo in ${PKGREPOS[@]}; do + for arch in ${ARCHES[@]}; do + repo_lock ${repo} ${arch} || exit 1 + done +done ${CLEANUP_DRYRUN} && warning 'dry run mode is active' |