]> sipb.mit.edu Git - ikiwiki.git/blob - auto.setup
Note that inline sort by title really sorts by path
[ikiwiki.git] / auto.setup
1 #!/usr/bin/perl
2 # Ikiwiki setup automator.
3
4 # This setup file causes ikiwiki to create a wiki, check it into revision
5 # control, generate a setup file for the new wiki, and set everything up.
6 #
7 # Just run: ikiwiki -setup /etc/ikiwiki/auto.setup
8 #
9 # By default, it asks a few questions, and confines itself to the user's home
10 # directory. You can edit it to change what it asks questions about, or to
11 # modify the values to use site-specific settings.
12
13 require IkiWiki::Setup::Automator;
14
15 our $wikiname=IkiWiki::Setup::Automator::ask(
16         "What will the wiki be named?", "wiki");
17 our $rcs=IkiWiki::Setup::Automator::ask(
18         "What revision control system to use?", "git");
19 our $admin=IkiWiki::Setup::Automator::ask(
20         "What wiki user (or openid) will be wiki admin?", $ENV{USER});
21 our $hostname=`hostname -f`; chomp $hostname;
22
23 IkiWiki::Setup::Automator->import(
24         wikiname => $wikiname,
25         adminuser => [$admin],
26         rcs => $rcs,
27         srcdir => "$ENV{HOME}/$wikiname",
28         destdir => "$ENV{HOME}/public_html/$wikiname",
29         repository => "$ENV{HOME}/$wikiname.$rcs",
30         dumpsetup => "$ENV{HOME}/$wikiname.setup",
31         url => "http://$hostname/~$ENV{USER}/$wikiname",
32         cgiurl => "http://$hostname/~$ENV{USER}/$wikiname/ikiwiki.cgi",
33         cgi_wrapper => "$ENV{HOME}/public_html/$wikiname/ikiwiki.cgi",
34         adminemail => "$ENV{USER}\@$hostname",
35         add_plugins => [qw{goodstuff websetup}],
36         disable_plugins => [qw{}],
37         libdir => "$ENV{HOME}/.ikiwiki",
38         rss => 1,
39         atom => 1,
40         syslog => 1,
41         prefix_directives => 1,
42         hardlink => 1,
43 )