install
author Paul Crowley <paul@lshift.net>
Wed, 28 May 2008 18:14:15 +0100
changeset 31 d54720d47ca2
parent 27 ec31ba248edd
child 32 4059dbe9f26a
permissions -rwxr-xr-x
start to move towards things living where they should and new break-in system. Big change.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
27
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
     1
#!/bin/sh
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
     2
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
     3
set -e
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
     4
31
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
     5
install -o root -g root -d /usr/local/lib/hg-admin-tools
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
     6
install -o root -g root -t /usr/local/lib/hg-admin-tools \
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
     7
    access.py hg-ssh refresh-auth ruleset.py hgadmin-hgrc break-in
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
     8
install -o root -g root -d /etc/hg-admin-tools
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
     9
install -o root -g root -t /etc/hg-admin-tools hg-ssh-wrapper remote-hgrc
27
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    10
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    11
sudo adduser --system --shell /bin/sh --group --disabled-password \
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    12
   --gecos "Mercurial repositories" hg
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    13
sudo -u hg -H ./hginit
31
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 27
diff changeset
    14