mirror of
https://github.com/linux-msm/cdba.git
synced 2026-02-25 13:11:56 -08:00
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>
9 lines
202 B
Bash
Executable File
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/
|