summaryrefslogtreecommitdiff
path: root/github-mirror
blob: b7cd2dc1ba13266500e8965f7e19ef5cd667161b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/bin/sh

[ -z $LISTEN_FDS -o $LISTEN_FDS -ne 1 ] && exit 1

mkdir -p /run/github-mirror

(
    while read -u 3 repository; do
       (cd "$repository"; /git/bin/sync-github-mirror) &
    done
) &

echo $! > /run/github-mirror/pid