X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=config%2Fbackports.org%2Fcron.unchecked;fp=config%2Fbackports.org%2Fcron.unchecked;h=0000000000000000000000000000000000000000;hb=ed8398ac403749c2e7720c10854d34f29498b584;hp=bb2337e1d3cf1e6513f837b65e765ed4a15a0b70;hpb=0872b2e0b78670c91fd2bf0bda52e5761e079820;p=dak.git diff --git a/config/backports.org/cron.unchecked b/config/backports.org/cron.unchecked deleted file mode 100755 index bb2337e1..00000000 --- a/config/backports.org/cron.unchecked +++ /dev/null @@ -1,34 +0,0 @@ -#! /bin/sh -set -e -export SCRIPTVARS=/org/backports.org/dak-config/vars -. $SCRIPTVARS - -LOCKFILE="$lockdir/unchecked.lock" -NOTICE="$lockdir/daily.lock" - -cleanup() { - rm -f "$LOCKFILE" - if [ ! -z $LOCKDAILY ]; then - rm -f "$NOTICE" - fi -} -trap cleanup 0 - -# only run one cron.unchecked -if lockfile -r3 $LOCKFILE; then - cd $unchecked - - changes=$(find . -maxdepth 1 -mindepth 1 -type f -name \*.changes | sed -e "s,./,," | xargs) - report=$queuedir/REPORT - timestamp=$(date "+%Y-%m-%d %H:%M") - - if [ ! -z "$changes" ]; then - echo "$timestamp": "$changes" >> $report - dak process-unchecked -a $changes >> $report - echo "--" >> $report - else - echo "$timestamp": Nothing to do >> $report - fi -fi - -rm -f "$LOCKFILE"