aboutsummaryrefslogtreecommitdiff
path: root/simple.setup
diff options
context:
space:
mode:
authorJoey Hess <joey@kodama.kitenet.net>2008-07-27 01:39:11 -0400
committerJoey Hess <joey@kodama.kitenet.net>2008-07-27 01:39:11 -0400
commitf28b57526ce7a4fe1337dda07533862d918f59b6 (patch)
tree307ffd6932ee1d82f11061aa56151dd853b2e1a4 /simple.setup
parente1f7146041ab7dbbaf045a5da959d9086fbaae50 (diff)
downloadikiwiki-f28b57526ce7a4fe1337dda07533862d918f59b6.tar
ikiwiki-f28b57526ce7a4fe1337dda07533862d918f59b6.tar.gz
setup automator
"ikiwiki -setup /etc/ikiwiki/simple.setup" can be used set up a new wiki in seconds
Diffstat (limited to 'simple.setup')
-rw-r--r--simple.setup13
1 files changed, 13 insertions, 0 deletions
diff --git a/simple.setup b/simple.setup
index c7be9a7f3..7c2e635c8 100644
--- a/simple.setup
+++ b/simple.setup
@@ -16,6 +16,7 @@ our $wikiname=IkiWiki::Setup::Automator::ask(
"What will the wiki be named?", "wiki");
our $rcs=IkiWiki::Setup::Automator::ask(
"What revision control system to use?", "git");
+our $hostname=`hostname -f`; chomp $hostname;
IkiWiki::Setup::Automator::import(
wikiname => $wikiname,
@@ -24,4 +25,16 @@ IkiWiki::Setup::Automator::import(
destdir => "$ENV{HOME}/public_html/$wikiname",
repository => "$ENV{HOME}/$wikiname.$rcs",
setupfile => "$ENV{HOME}/$wikiname.setup",
+ url => "http://$hostname/~$ENV{USER}/$wikiname",
+ cgiurl => "http://$hostname/~$ENV{USER}/$wikiname/ikiwiki.cgi",
+ cgi_wrapper => "$ENV{HOME}/public_html/$wikiname/ikiwiki.cgi",
+ adminemail => "$ENV{USER}\@$hostname",
+ add_plugins => [qw{ goodstuff }],
+ disable_plugins => [qw{ }],
+ libdir => "$ENV{HOME}/.ikiwiki",
+ rss => 1,
+ atom => 1,
+ syslog => 1,
+ prefix_directives => 1,
+ hardlink => 1,
);