diff options
author | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 01:39:11 -0400 |
---|---|---|
committer | Joey Hess <joey@kodama.kitenet.net> | 2008-07-27 01:39:11 -0400 |
commit | f28b57526ce7a4fe1337dda07533862d918f59b6 (patch) | |
tree | 307ffd6932ee1d82f11061aa56151dd853b2e1a4 /simple.setup | |
parent | e1f7146041ab7dbbaf045a5da959d9086fbaae50 (diff) | |
download | ikiwiki-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.setup | 13 |
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, ); |