8 PROJECT=${PROJECT//\//_}
12 cat << EOF > "$GITPATH/hooks/post-receive"
14 kgb-client --git-reflog - --conf $GITPATH/hooks/kgb.conf
17 chmod +x "$GITPATH/hooks/post-receive"
19 cat << EOF > "$GITPATH/hooks/kgb.conf"
23 - uri: http://localhost:5391
26 cat << EOF |sudo tee "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf" >/dev/null
32 sudo chmod 640 "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf";
33 sudo chgrp Debian-kgb "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf";
34 sudo service kgb-bot reload;