diff options
author | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-09 17:20:03 -0300 |
---|---|---|
committer | Nicolás Reynolds <fauno@kiwwwi.com.ar> | 2012-09-09 17:20:03 -0300 |
commit | 0de6455d6b8b3b64caf5c4ab96b4166b02cf6655 (patch) | |
tree | 26f551e6467fd2c3ea852f0f8dfcdd91f4f2eec6 /Makefile | |
parent | 2a5839d898d5f029e7a8c0c276be9bac822e480d (diff) |
Make it clearer
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -1,11 +1,20 @@ +# The git user home, from where repos are served PREFIX=/srv/git +# The git user USER=git +# The git-shell path GIT_SHELL=/usr/bin/git-shell +# The hacking.git clone HACKERS=$(PWD) # Create the user user: - useradd -d $(PREFIX) -m -r -s $(GIT_SHELL) -U $(USER) + useradd --home $(PREFIX) \ + --shell $(GIT_SHELL) \ + --create-home \ + --system \ + --user-group \ + $(USER) # Create the hackers.git bare repo and clone as .ssh # Then create needed symlinks and add hooks to hackers.git @@ -13,6 +22,7 @@ install: cd $(PREFIX); \ git clone --bare $(HACKERS) hackers.git && \ git clone hackers.git .ssh && \ + chmod 700 $(PREFIX) && \ chmod 700 .ssh && \ chmod 600 .ssh/authorized_keys && \ ln -s $(PREFIX)/.ssh/git-hooks/* hackers.git/hooks/ && \ |