summaryrefslogtreecommitdiffstats
path: root/roles/phabricator/templates/phabricator-ssh-hook.sh.j2
blob: 8fd4f7eb973bc14e4f425ff7caae751b98650bb6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/sh

# NOTE: Replace this with the username that you expect users to connect with.
VCSUSER="{{ phabricator_vcs_user }}"

# NOTE: Replace this with the path to your Phabricator directory.
ROOT="{{ phabroot }}/phabricator"

if [ "$1" != "$VCSUSER" ];
then
exit 1
fi

exec "$ROOT/bin/ssh-auth" $@