11 cat << EOF > "$GITPATH/hooks/post-receive"
13 kgb-client --git-reflog - --conf $GITPATH/hooks/kgb.conf
16 chmod +x "$GITPATH/hooks/post-receive"
18 cat << EOF > "$GITPATH/hooks/kgb.conf"
22 - uri: http://localhost:5391
25 cat << EOF |sudo tee "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf" >/dev/null
31 sudo chmod 640 "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf";
32 sudo chgrp Debian-kgb "/etc/kgb-bot/kgb.conf.d/${PROJECT}.conf";
33 sudo service kgb-bot reload;