From 6ac3a9c991c90851c1793b1353f8aedfac9d7922 Mon Sep 17 00:00:00 2001 From: Jamie McClelland Date: Wed, 3 Sep 2008 15:28:20 -0400 Subject: [PATCH] Modifying instruction to change the order of creating the repo's so that when the post-receive hook is run, ikiwiki has had a chance to create it. --- website/mirrors.mdwn | 45 ++++++++++++++++++++++++++++++-------------- 1 file changed, 31 insertions(+), 14 deletions(-) diff --git a/website/mirrors.mdwn b/website/mirrors.mdwn index feee9bd..44f50d9 100644 --- a/website/mirrors.mdwn +++ b/website/mirrors.mdwn @@ -8,9 +8,7 @@ We're mirrored on several servers. Rather than using ikiwiki's [pinger/pingee approach to distribution](http://ikiwiki.info/tips/distributed_wikis/), we've opted for a method that uses ssh. -The steps for creating a new mirror are: - -## Steps to take on the mirror server ## +## Initial steps to take on the mirror server ## Add etch-backports to your /etc/apt/sources.list: @@ -50,19 +48,12 @@ Add web site configuration that the user has write access to. If you are using A 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 +As the new user, create a git repo - chmod 755 monkesphere.git/hooks/post-receive + mkdir monkeysphere.git; cd monkeysphere.git; git init --bare; -Edit the file so that it executes the post-receive hook ikiwiki generates (as -you specified in the ikiwiki.setup file) -## Admin steps to take to enable the configuration ## +## Initial Admin steps to take to enable the configuration ## Add a new dns record for SERVERNAME.monkeysphere.info. @@ -73,9 +64,35 @@ 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 +Modify ~/monkeysphere.git/config, so the new repo stanza looks like this: + + [remote "SERVERNAME"] + url = USER@SERVERNAME.monkeysphere.info:monkeysphere.git + push = +refs/heads/master + skipDefaultUpdate = true + Test: git push SERVERNAME - +## Final steps to take on mirror server ## + +At this point, you should have a populated git repo in your +monkeyshere.git directory. + +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) + +Next, clone the repository: + + clone monkeysphere.git monkeysphere + +And lastly, run ikiwiki manually to generate the post-receive hook: + + ikiwiki --setup ikiwiki.setup + -- 2.26.2