mirroring/*, jobs/gc.sh: daemons/*
[girocco.git] / jobs / updatecheck.sh
blob7b8abf632dee287a7a52c2f2e5e092a1ec31c32f
1 #!/bin/bash
3 . @basedir@/shlib.sh
5 if [ -e /tmp/gitupdatelock ]; then
6 echo "Locked!" >&2
7 exit 1
8 fi
9 touch /tmp/gitupdatelock
11 cd "$cfg_reporoot"
12 get_repo_list |
13 while read dir; do
14 progress "+ `date` $dir"
15 if [ ! -e "$dir.git"/.nofetch ]; then
16 "$cfg_basedir"/daemons/update.sh "${dir}"
18 progress "- `date` $dir"
19 done 2>&1
21 rm /tmp/gitupdatelock