src/init/hginit
author Paul Crowley <paul@lshift.net>
Sat, 19 Dec 2009 10:47:13 +0000 (2009-12-19)
changeset 242 03d8f07230b3
parent 168 f9bf8f84df7f
child 311 3cbde66305e4
permissions -rwxr-xr-x
Tidy up file prologues; move credits to CREDITS
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
168
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     3
set -e
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     4
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     5
cd
165
3606d60b07e5 Use .mercurial-sever file instead of hardcoding
Paul Crowley <paul@lshift.net>
parents: 96
diff changeset
     6
168
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     7
if [ -e .ssh/authorized_keys ] ; then
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     8
    echo "This user already exists with authorized keys, aborting"
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
     9
    exit -1
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
    10
fi
27
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    11
165
3606d60b07e5 Use .mercurial-sever file instead of hardcoding
Paul Crowley <paul@lshift.net>
parents: 96
diff changeset
    12
cp $1/init/dot-mercurial-server .mercurial-server
31
d54720d47ca2 start to move towards things living where they should and new
Paul Crowley <paul@lshift.net>
parents: 30
diff changeset
    13
mkdir -p repos/hgadmin .ssh
27
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    14
cd repos/hgadmin
ec31ba248edd Installer to set things up automatically
Paul Crowley <paul@ciphergoth.org>
parents:
diff changeset
    15
hg init .
96
975fb921c3f3 abolish that one last path
Paul Crowley <paul@lshift.net>
parents: 95
diff changeset
    16
cp $1/init/hgadmin-hgrc .hg/hgrc
168
f9bf8f84df7f Kill install in favour of setup.py and Makefile
Paul Crowley <paul@lshift.net>
parents: 165
diff changeset
    17