Skip to content

Commit 926ca24

Browse files
committed
cdba-shell: set the CDBA_USER variable
Set and export the CDBA_USER variable to enable ACL in cdba-server. Signed-off-by: Dmitry Baryshkov <[email protected]>
1 parent 5164ca9 commit 926ca24

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

shell/cdba-shell

100644100755
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
#!/bin/sh
22

3-
user=$1
3+
export CDBA_USER="$1"
44
cmd=${SSH_ORIGINAL_COMMAND%% *}
55

66
if [ "$cmd" = "git-upload-pack" -o "$cmd" = "git-receive-pack" ]; then
7-
if grep -Fxq $user $HOME/admins ; then
7+
if grep -Fxq $CDBA_USER $HOME/admins ; then
88
exec sh -c "$SSH_ORIGINAL_COMMAND"
99
fi
1010

0 commit comments

Comments
 (0)