blob: 3ddde8e7fe1134052af7d7b077be6ef84f4cfcf2 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
|
Use cases:
### Adding post-update hooks, which requires diverting Ikiwiki's hook.
mv /srv/git/poop.git/hooks/post-update /srv/git/poop.git/hooks/post-update-ikiwiki
cat > /srv/git/poop.git/hooks/post-update
#!/bin/sh
/srv/git/poop.git/hooks/post-update-ikiwiki &
echo This is a hook that does things!
cat > /srv/ikiwiki/piny/poop.setup.pl
foreach(@{$config->{wrappers}}) { $_->{wrapper} =~ s/post-update/post-update-ikiwiki/; };
rebuildrepo poop
### Adding or removing plugins, or plugin configuration variables.
cat > /srv/ikiwiki/piny/poop.setup.pl
push(@{$config->{add_plugins}}, 'txt');
rebuildrepo poop
### Any other special configuration requests from hosted projects.
cat > /srv/ikiwiki/piny/poop.setup.pl
$config->{teximg_prefix} .= "\n\\newcommand{\\unit}[1]{\\ensuremath{\\, \\mathrm{#1}}}"
rebuildrepo poop
|