mirror of
https://github.com/freedombox/FreedomBox.git
synced 2026-11-29 08:25:10 +00:00
ikiwiki: Install conf files during Plinth install.
This commit is contained in:
1 parent
045dae59f7
commit
be14b49c83
5 files changed
+78
-95
No files matched your search
@@ -0,0 +1,6 @@
|
||||
Alias /ikiwiki /var/www/ikiwiki
|
||||
AddHandler cgi-script .cgi
|
||||
|
||||
<Directory /var/www/ikiwiki>
|
||||
Options +ExecCGI
|
||||
</Directory>
|
||||
@@ -0,0 +1,36 @@
|
||||
#!/usr/bin/perl
|
||||
# Ikiwiki setup automator for Plinth (blog version).
|
||||
|
||||
require IkiWiki::Setup::Automator;
|
||||
|
||||
our $wikiname=$ARGV[0];
|
||||
our $admin=$ARGV[1];
|
||||
if (($wikiname eq "") || ($admin eq "")) {
|
||||
print "Usage: ikiwiki -setup /etc/ikiwiki/plinth-blog.setup blog_name admin_name";
|
||||
exit;
|
||||
}
|
||||
|
||||
our $wikiname_short=IkiWiki::Setup::Automator::sanitize_wikiname($wikiname);
|
||||
|
||||
IkiWiki::Setup::Automator->import(
|
||||
wikiname => $wikiname,
|
||||
adminuser => [$admin],
|
||||
rcs => "git",
|
||||
srcdir => "/var/lib/ikiwiki/$wikiname_short",
|
||||
destdir => "/var/www/ikiwiki/$wikiname_short",
|
||||
repository => "/var/lib/ikiwiki/$wikiname_short.git",
|
||||
dumpsetup => "/var/lib/ikiwiki/$wikiname_short.setup",
|
||||
url => "/ikiwiki/$wikiname_short",
|
||||
cgiurl => "/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
cgi_wrapper => "/var/www/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
add_plugins => [qw{goodstuff websetup comments calendar sidebar trail httpauth}],
|
||||
rss => 1,
|
||||
atom => 1,
|
||||
syslog => 1,
|
||||
example => "blog",
|
||||
comments_pagespec => "posts/* and !*/Discussion",
|
||||
archive_pagespec => "page(posts/*) and !*/Discussion",
|
||||
global_sidebars => 0,
|
||||
discussion => 0,
|
||||
tagbase => "tags",
|
||||
)
|
||||
@@ -0,0 +1,30 @@
|
||||
#!/usr/bin/perl
|
||||
# Ikiwiki setup automator for Plinth.
|
||||
|
||||
require IkiWiki::Setup::Automator;
|
||||
|
||||
our $wikiname=$ARGV[0];
|
||||
our $admin=$ARGV[1];
|
||||
if (($wikiname eq "") || ($admin eq "")) {
|
||||
print "Usage: ikiwiki -setup /etc/ikiwiki/plinth-wiki.setup wiki_name admin_name";
|
||||
exit;
|
||||
}
|
||||
|
||||
our $wikiname_short=IkiWiki::Setup::Automator::sanitize_wikiname($wikiname);
|
||||
|
||||
IkiWiki::Setup::Automator->import(
|
||||
wikiname => $wikiname,
|
||||
adminuser => [$admin],
|
||||
rcs => "git",
|
||||
srcdir => "/var/lib/ikiwiki/$wikiname_short",
|
||||
destdir => "/var/www/ikiwiki/$wikiname_short",
|
||||
repository => "/var/lib/ikiwiki/$wikiname_short.git",
|
||||
dumpsetup => "/var/lib/ikiwiki/$wikiname_short.setup",
|
||||
url => "/ikiwiki/$wikiname_short",
|
||||
cgiurl => "/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
cgi_wrapper => "/var/www/ikiwiki/$wikiname_short/ikiwiki.cgi",
|
||||
add_plugins => [qw{goodstuff websetup httpauth}],
|
||||
rss => 1,
|
||||
atom => 1,
|
||||
syslog => 1,
|
||||
)
|
||||
Reference in new issue
Block a user