summaryrefslogtreecommitdiff
path: root/website
diff options
context:
space:
mode:
authorJamie McClelland <jm@mayfirst.org>2008-09-03 12:29:52 -0400
committerJamie McClelland <jm@mayfirst.org>2008-09-03 12:29:52 -0400
commit7c8b46d6ddce871b4c4520fc6910f4553af008ec (patch)
treefada8b9f9daeaed1cd04aee7dff409ad8e758375 /website
parent99b3c2c4aa1e145ed14e22612abb3473016ac307 (diff)
fixing formatting and typo (pusch -> push).
Diffstat (limited to 'website')
-rw-r--r--website/mirrors.mdwn16
1 files changed, 15 insertions, 1 deletions
diff --git a/website/mirrors.mdwn b/website/mirrors.mdwn
index 8445a26..342abfa 100644
--- a/website/mirrors.mdwn
+++ b/website/mirrors.mdwn
@@ -26,21 +26,32 @@ The steps for creating a new mirror are:
Pin: release a=etch-backports
Pin-Priority: 999
* Install git-core and ikiwiki
+
aptitude update; aptitutde install git-core ikiwiki
+
* Create a new user. Change the new users shell to git-shell:
+
adduser -s /usr/bin/git-shell <username>
+
* Add webmaster@george's public key to this user's ~/.ssh/authorized_keys file
+
* Add web site configuration that the user has write access to. If you are using Apache, include the following rewrite:
+
RewriteEngine On
RewriteCond %{HTTP_HOST} !^(YOURHOSTNAME|web)\.monkeysphere\.info$ [NC]
RewriteCond %{HTTP_HOST} !^$
RewriteRule ^/(.*) http://web.monkeysphere.info/$1 [L,R]
+
* Upload and edit ikiwiki.setup.sample from the docs directory
* As the new user, create two new git repos
+
mkdir monkeysphere.git; cd monkeysphere.git; git init --bare; cd ../
git clone monkeysphere.git # this will create a second git repo called monkeysphere
+
* Change the mode of monkeysphere.git/hooks/post-receive to 755
+
chmod 755 monkesphere.git/hooks/post-receive
+
* Edit the file so that it executes the post-receive hook ikiwiki generates (as you specified in the ikiwiki.setup file)
The steps to be taken on the mirror site should now be complete. The following steps should be taken by a Monkeysphere admin user:
@@ -48,10 +59,13 @@ The steps to be taken on the mirror site should now be complete. The following s
* Add a new dns record for SERVERNAME.monkeysphere.info.
* Test the ssh connection by logging in as webmaster@george.riseup.net
* Add the new server as a remote on webmaster@george.riseup.net:monkeysphere.git
+
cd ~/monkeysphere.git
git add remote SERVERNAME USER@SERVERNAME.monkeysphere.info:/path/to/repo
+
* Test:
- git pusch SERVERNAME
+
+ git push SERVERNAME