Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F86968527
phabricator-ssh-hook.sh
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Wed, Oct 9, 17:35
Size
278 B
Mime Type
text/x-shellscript
Expires
Fri, Oct 11, 17:35 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
21380050
Attached To
rPH Phabricator
phabricator-ssh-hook.sh
View Options
#!/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"
$@
Event Timeline
Log In to Comment