cgi/*proj.cgi: Rearrange the retype-password inputs horizontally
[girocco/mytab.git] / jobs / update.sh
blobfe7774299d820e80753f3df80f03bc10332423f6
1 #!/bin/bash
3 . @basedir@/shlib.sh
5 set -e
7 proj="$1"
9 bang_setup
10 bang_once=1
11 bang_action="update"
13 cd "$proj.git"
14 url="$(cat base_url)"
15 mail="$(cat owner)"
17 bang git --git-dir=. mirror "$url"
18 bang git --git-dir=. update-server-info
19 date -R >.last_refresh
21 if [ -e .banged ]; then
22 echo "$proj update succeeded - failure recovery" | mail -s "[$cfg_name] $proj update succeeded" "$mail,$cfg_admin"
23 rm .banged