justint 2010-10-14 20:42:23 +00:00 committed by Joey Hess
parent 46118a983f
commit 52375d9c08
1 changed files with 44 additions and 0 deletions

View File

@ -109,6 +109,50 @@ sudo make install
it installed without issue so I'm baffled why it didn't install from command line.
## setup file
#!/usr/bin/perl
# Ikiwiki setup automator.
#
# This setup file causes ikiwiki to create a wiki, check it into revision
# control, generate a setup file for the new wiki, and set everything up.
#
# Just run: ikiwiki -setup /etc/ikiwiki/auto.setup
#
# By default, it asks a few questions, and confines itself to the user's home
# directory. You can edit it to change what it asks questions about, or to
# modify the values to use site-specific settings.
require IkiWiki::Setup::Automator;
our $wikiname="your wiki";
our $wikiname_short="yourwiki";
our $rcs="git";
our $admin="your name";
use Net::Domain q{hostfqdn};
our $domain="your.domain";
IkiWiki::Setup::Automator->import(
wikiname => $wikiname,
adminuser => [$admin],
rcs => $rcs,
srcdir => "/opt/ikiwiki/$wikiname_short",
destdir => "/Library/WebServer/Documents/$wikiname_short",
repository => "/opt/ikiwiki/$wikiname_short.".($rcs eq "monotone" ? "mtn" : $rcs),
dumpsetup => "/opt/ikiwiki/$wikiname_short.setup",
url => "http://$domain/$wikiname_short",
cgiurl => "http://$domain/cgi-bin/$wikiname_short/ikiwiki.cgi",
cgi_wrapper => "/Library/WebServer/CGI-Executables/$wikiname_short/ikiwiki.cgi",
adminemail => "your\@email.com",
add_plugins => [qw{goodstuff websetup}],
disable_plugins => [qw{}],
libdir => "/opt/ikiwiki/.ikiwiki",
rss => 1,
atom => 1,
syslog => 1,
)
## turning on search plugin:
I turned on the plugin from the setup page in ikiwiki but it gave an error when I went to search. Error "blah blah cgi-bin/omega/omega" does not exist or some such. I did a