From 0b414a9942dc8efd808438bc4f8d3a6a3ade6503 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nicol=C3=A1s=20Reynolds?= Date: Wed, 5 Sep 2012 13:41:01 -0300 Subject: The Makefile --- Makefile | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 Makefile (limited to 'Makefile') diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..accda79 --- /dev/null +++ b/Makefile @@ -0,0 +1,17 @@ +PREFIX=/srv/git +USER=git +SHELL=/usr/bin/git-shell +HACKERS=$(PWD) + +# Create the user +user: + useradd -d $(PREFIX) -m -r -s $(SHELL) -U + +install: user + pushd $(PREFIX) + git clone --bare $(HACKERS) hackers.git + git clone hackers.git .ssh + chmod 700 .ssh + chmod 600 .ssh/authorized_keys + ln -s $(PREFIX)/.ssh/git-hooks/* hackers.git/hooks/ + ln -s $(PREFIX)/.ssh/git-shell-commands . -- cgit v1.2.3