From 2505014e9878638d15926dff02cd00149ed3fd33 Mon Sep 17 00:00:00 2001 From: Silvio Rhatto Date: Mon, 25 Jan 2010 18:03:50 -0200 Subject: Misc fixes --- manifests/init.pp | 1 + templates/deploy.sh.erb | 15 +++++++++------ 2 files changed, 10 insertions(+), 6 deletions(-) diff --git a/manifests/init.pp b/manifests/init.pp index 39acc04..2661953 100644 --- a/manifests/init.pp +++ b/manifests/init.pp @@ -19,6 +19,7 @@ class ikiwiki { $adminuser = 'yourname', $adminemail = 'me@example.org', $instance = 'ikiwiki') { $desc = $decription ? { + '' => $title, false => $title, default => $description, } diff --git a/templates/deploy.sh.erb b/templates/deploy.sh.erb index 69785d0..5386729 100644 --- a/templates/deploy.sh.erb +++ b/templates/deploy.sh.erb @@ -6,7 +6,9 @@ BASE="<%= apache_sites_folder %>" SITE=$BASE/$NAME CONF="/etc/ikiwiki" OWNER="gitosis" -GROUP="gitosis" +WEB_GROUP="www-data" +REPO_GROUP="gitosis" +REPO="/var/git/repositories/$NAME.git" if [ -z "$INSTANCE" ]; then echo "Usage:`basename $0` " @@ -20,7 +22,7 @@ fi mkdir -p $SITE/"$INSTANCE"_src/ # Create initial page -echo > $SITE/"$INSTANCE"_src/index.mdw < $SITE/"$INSTANCE"_src/index.mdwn <