mirror of
https://we.phorge.it/source/phorge.git
synced 2024-12-23 14:00:56 +01:00
e77d5012be
Summary: Ref T4151. `-ne` is numeric in some/most/all shells; `exec --` apparently doens't always work. Test Plan: Will make @zeeg test. Reviewers: btrahan, zeeg Reviewed By: zeeg CC: zeeg, aran Maniphest Tasks: T4151 Differential Revision: https://secure.phabricator.com/D7702
14 lines
278 B
Bash
Executable file
14 lines
278 B
Bash
Executable file
#!/bin/sh
|
|
|
|
# NOTE: Replace this with the username that you expect users to connect with.
|
|
VCSUSER="vcs-user"
|
|
|
|
# NOTE: Replace this with the path to your Phabricator directory.
|
|
ROOT="/path/to/phabricator"
|
|
|
|
if [ "$1" != "$VCSUSER" ];
|
|
then
|
|
exit 1
|
|
fi
|
|
|
|
exec "$ROOT/bin/ssh-auth" $@
|