summaryrefslogtreecommitdiff
path: root/run
diff options
context:
space:
mode:
Diffstat (limited to 'run')
-rwxr-xr-xrun3
1 files changed, 2 insertions, 1 deletions
diff --git a/run b/run
index d167007..44f505e 100755
--- a/run
+++ b/run
@@ -7,7 +7,8 @@ or exit 1;
for user in (string split ',' $_flag_u)
echo "Setting up user: $user"
set -l HOME "/home/$user"
- adduser --home $HOME -D "$user"
+ adduser --home $HOME -D "$user" --shell "/usr/bin/git-shell"
+ passwd -u "$user"
mkdir "$HOME/.ssh"
cp "/var/keys/$user/authorized_keys" "$HOME/.ssh/"
chown -R $user "$HOME"