summaryrefslogtreecommitdiff
path: root/localikiwikicreatesite
blob: 9ab367e44f52b21375101293b20714eaf58b3ef9 (plain)
  1. #!/bin/sh
  2. # Origin: http://ikiwiki.info/setup/
  3. set -e
  4. host=$1
  5. [ -z "$host" ] && echo "ERROR: Hostname must be supplied!" && exit 1
  6. SRCDIR=~/private_webdata/"$host"/content
  7. DESTDIR=~/public_websites/"$host"
  8. mkdir -p $SRCDIR
  9. cat <<EOF >$SRCDIR/index.mdwn
  10. Welcome to your new wiki.
  11. All wikis are supposed to have a <a href="../sandbox/">SandBox</a>,
  12. so this one does too.
  13. ----
  14. This wiki is powered by [ikiwiki](http://ikiwiki.info).
  15. EOF
  16. ikiwiki --verbose $SRCDIR $DESTDIR --url=http://"$host"