#!/bin/bash NAME="$1" INSTANCE="$2" BASE="<%= apache_sites_folder %>" SITE=$BASE/$NAME CONF="/etc/ikiwiki" OWNER="gitosis" WEB_GROUP="www-data" REPO_GROUP="gitosis" REPO="/var/git/repositories/$NAME.git" if [ -z "$INSTANCE" ]; then echo "Usage:`basename $0` " fi if [ ! -e "$CONF/$NAME" ]; then echo "No config file for $NAME" fi # Setup source folder mkdir -p $SITE/"$INSTANCE"_src/ # Create initial page echo > $SITE/"$INSTANCE"_src/index.mdwn <