From 9d3a36db5821f39f700516faa9b6eeb0e904581b Mon Sep 17 00:00:00 2001 From: Joe Rayhawk Date: Sun, 12 Dec 2010 18:43:27 -0800 Subject: Notes: Ikiwiki creation: removing use of sudo and adding note on setup file editing --- notes/ikiwiki_creation.mdwn | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/notes/ikiwiki_creation.mdwn b/notes/ikiwiki_creation.mdwn index b84c17a..edfd44f 100644 --- a/notes/ikiwiki_creation.mdwn +++ b/notes/ikiwiki_creation.mdwn @@ -3,7 +3,7 @@ 0. Decide on a name - `reponame=hello` 1. Make a new git bare repo: - - `cd /srv/git` (or some other place for storing bare repos, just keep in mind you need to change the git wrapper later) + - `cd /srv/git` (or some other place for storing bare repos, just keep in mind you need to change the git wrapper in the setup file later) - `GIT_DIR=$reponame.git git init --shared # shared being useful if you want this to be multi-user, harmless otherwise` - edit `$reponame.git/description` to show an appropriate description in GitWeb/cgit 2. Make a clone for yourself to work with: @@ -19,11 +19,13 @@ - `git config branch.master.remote origin` - `git config branch.master.merge refs/heads/master` 3. Make a clone for Ikiwiki: - - `cd /srv/ikiwiki` (or some other place, just keep in mind you need to change `srcdir` later) + - `cd /srv/ikiwiki` (or some other place, just keep in mind you need to change `srcdir` in the setup file later) - `git clone --shared /srv/git/$reponame` - `curl http://piny.be/jrayhawk/notes/examplewiki.setup | sed 's/\/$reponame/g' > $reponame.setup # feel free to put the setup file anywhere` - Tweak other settings in `$reponame.setup` (like wikiname, adminemail, urls, and add_plugins) as desired. 4. Make a destination directory for rendered files: - - `sudo mkdir /var/www/$reponame` (or some other place, just keep in mind you need to change destdir now) + - `mkdir /var/www/$reponame` (or some other place, just keep in mind you need to change destdir in the setup file now) 5. Render - - `sudo -u ikiwiki ikiwiki --setup $reponame.setup` + - `ikiwiki --setup $reponame.setup` + +If you need to make further changes, `edit /srv/ikiwiki/$reponame.setup` and run `ikiwiki --setup /srv/ikiwiki/$reponame.setup --rebuild` -- cgit v1.2.3