diff options
author | Silvio Rhatto <rhatto@riseup.net> | 2010-01-06 22:37:49 -0200 |
---|---|---|
committer | Silvio Rhatto <rhatto@riseup.net> | 2010-01-06 22:37:49 -0200 |
commit | a9e94c261c5d76454a5d8b037c002baf6efbedfc (patch) | |
tree | e896730f057439e9dc623aaca35ca04cfcc92fc8 /templates/deploy.sh.erb | |
parent | bc59ef1fb7cf67c5451cae0c83ef187af86c9900 (diff) | |
download | puppet-ikiwiki-a9e94c261c5d76454a5d8b037c002baf6efbedfc.tar.gz puppet-ikiwiki-a9e94c261c5d76454a5d8b037c002baf6efbedfc.tar.bz2 |
Adding ikiwiki::instance
Diffstat (limited to 'templates/deploy.sh.erb')
-rw-r--r-- | templates/deploy.sh.erb | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb new file mode 100644 index 0000000..e98b57c --- /dev/null +++ b/templates/deploy.sh.erb @@ -0,0 +1,29 @@ +#!/bin/bash + +NAME="$1" +BASE="<%= apache_sites_folder %>" +SITE=$BASE/$NAME +CONF="/etc/ikiwiki" + +if [ -z "$NAME" ]; then + echo "Usage:`basename $0` <site>" +fi + +if [ ! -e "$CONF/$NAME" ]; then + echo "No config file for $NAME" +fi + +echo > $SITE/ikiwiki_src/index.mdw <<EOF +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-makerepo git $SITE/ikiwiki_src/ /var/git/repositories/$NAME.git +touch /var/git/repositories/$NAME.git/git-daemon-export-ok +( cd /var/git/repositories/$NAME.git && git --bare update-server-info ) +ikiwiki --setup /etc/ikiwiki/$NAME.setup |