diff options
author | Lukas Fleischer <archlinux@cryptocrack.de> | 2015-01-08 19:28:34 +0100 |
---|---|---|
committer | Lukas Fleischer <archlinux@cryptocrack.de> | 2015-01-11 18:44:01 +0100 |
commit | 4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2 (patch) | |
tree | 54904534cca89bb06074799fdb16776534f6201d /INSTALL | |
parent | cb661cd971b7a219c33e24875d23afafc6a48334 (diff) | |
download | aur-4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2.tar.gz aur-4dbd562b8e5bf8d44a7a19b8e248b2b0e0295eb2.tar.xz |
Use custom templates for Git repositories
Do not waste disk space by copying dozens of unneeded sample hooks. Use
a custom template directory that only includes the git-update hook.
Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'INSTALL')
-rw-r--r-- | INSTALL | 12 |
1 files changed, 8 insertions, 4 deletions
@@ -19,7 +19,11 @@ Setup on Arch Linux $ mysql -uaur -p AUR </srv/http/aur/schema/aur-schema.sql -5) Clone the OpenSSH project, apply the AUR sshd patch and run `make`: +5) Generate templates for new Git repositories: + + $ /srv/http/aur/scripts/git-integration/gen-templates.py + +6) Clone the OpenSSH project, apply the AUR sshd patch and run `make`: $ cd /srv/http/aur/ $ git clone git://anongit.mindrot.org/openssh.git @@ -30,7 +34,7 @@ Setup on Arch Linux $ ./configure $ make -6) Create and edit the sshd configuration: +7) Create and edit the sshd configuration: $ cd /srv/http/aur/ $ umask 077 @@ -38,12 +42,12 @@ Setup on Arch Linux $ ssh-keygen -f .ssh/ssh_host_rsa_key -N '' -t rsa $ cp scripts/git-integration/sshd_config .ssh/ -7) Create a new user and change ownership of the .ssh directory: +8) Create a new user and change ownership of the .ssh directory: # useradd -U -d /srv/http/aur -c 'AUR user' aur # chown aur:aur /srv/http/aur/.ssh/ -8) Add, enable and start systemd unit files for the new sshd: +9) Add, enable and start systemd unit files for the new sshd: # cp /srv/http/aur/conf/aur-sshd.socket /etc/systemd/system/ # cp /srv/http/aur/conf/aur-sshd@.service /etc/systemd/system/ |