diff options
author | Joe Rayhawk <jrayhawk@richardiv.omgwallhack.org> | 2010-12-12 18:43:27 -0800 |
---|---|---|
committer | Joe Rayhawk <jrayhawk@richardiv.omgwallhack.org> | 2010-12-12 18:43:27 -0800 |
commit | 9d3a36db5821f39f700516faa9b6eeb0e904581b (patch) | |
tree | a6dac2179cffc3e7594d10ac066d30e0e53379ed /notes/ikiwiki_creation.mdwn | |
parent | 4fc0a995c8a108c135edd9490ff95ac4a4044321 (diff) | |
download | jrayhawk-9d3a36db5821f39f700516faa9b6eeb0e904581b.tar.gz jrayhawk-9d3a36db5821f39f700516faa9b6eeb0e904581b.zip |
Notes: Ikiwiki creation: removing use of sudo and adding note on setup file editing
Diffstat (limited to 'notes/ikiwiki_creation.mdwn')
-rw-r--r-- | notes/ikiwiki_creation.mdwn | 10 |
1 files 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/\<examplewiki\>/$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` |