Files
cdba/shell/setup.sh
Bjorn Andersson ffc91a6bf2 cdba-shell: Add some simple scripts for user maintenance
Introduce some scripts to allow storing users public keys in a git and
some hooks such that when this is pushed to the server the
authorized_keys file is re-generated.

Signed-off-by: Bjorn Andersson <bjorn.andersson@linaro.org>
2022-08-18 23:07:40 -05:00

9 lines
202 B
Bash
Executable File

#!/bin/sh -e
git init --bare $HOME/cdba-admin
install -m 755 post-receive $HOME/cdba-admin/hooks/
install -m 755 update $HOME/cdba-admin/hooks/
mkdir -p $HOME/bin
install -m 755 cdba-shell $HOME/bin/