From fc15a5b7cb7eb14cdb419475a1fa0a45ed38338e Mon Sep 17 00:00:00 2001 From: Jonas Smedegaard Date: Fri, 12 Oct 2007 14:12:34 +0000 Subject: New helper script to initialize a Redpill-style ikiwiki site. --- localikiwikicreatesite | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100755 localikiwikicreatesite (limited to 'localikiwikicreatesite') diff --git a/localikiwikicreatesite b/localikiwikicreatesite new file mode 100755 index 0000000..9ab367e --- /dev/null +++ b/localikiwikicreatesite @@ -0,0 +1,22 @@ +#!/bin/sh + +# Origin: http://ikiwiki.info/setup/ + +set -e + +host=$1 +[ -z "$host" ] && echo "ERROR: Hostname must be supplied!" && exit 1 + +SRCDIR=~/private_webdata/"$host"/content +DESTDIR=~/public_websites/"$host" + +mkdir -p $SRCDIR +cat <$SRCDIR/index.mdwn +Welcome to your new wiki. +All wikis are supposed to have a SandBox, +so this one does too. +---- +This wiki is powered by [ikiwiki](http://ikiwiki.info). +EOF + +ikiwiki --verbose $SRCDIR $DESTDIR --url=http://"$host" -- cgit v1.2.3