diff options
author | jrayhawk <jrayhawk@web> | 2010-10-13 21:19:43 -0700 |
---|---|---|
committer | piny-code <ikiwiki-piny-code@piny.svcs.cs.pdx.edu> | 2010-10-13 21:19:43 -0700 |
commit | fd6029e4531e4f8d3f5b54efc57167f7e9b89460 (patch) | |
tree | 931f3c8cf9b329dce76ecd31db9c3d3d19ea98fb /architecture | |
parent | 69fb1fedd2cf7ee0f068a90384c21645f967c0d2 (diff) | |
download | piny-code-fd6029e4531e4f8d3f5b54efc57167f7e9b89460.tar.gz piny-code-fd6029e4531e4f8d3f5b54efc57167f7e9b89460.zip |
Adding specific use cases
Diffstat (limited to 'architecture')
-rw-r--r-- | architecture/setup_file_overrides.mdwn | 25 |
1 files changed, 22 insertions, 3 deletions
diff --git a/architecture/setup_file_overrides.mdwn b/architecture/setup_file_overrides.mdwn index 94da991..0d54937 100644 --- a/architecture/setup_file_overrides.mdwn +++ b/architecture/setup_file_overrides.mdwn @@ -1,5 +1,24 @@ Use cases: -* Adding post-update hooks, which requires diverting Ikiwiki's. -* Adding or removing plugins, or plugin configuration variables. -* Any other special configuration requests from hosted projects. +### 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.overrides.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.overrides.pl + push(@{$config->{add_plugins}}, 'txt'); + rebuildrepo poop + +### Any other special configuration requests from hosted projects. + + cat > /srv/ikiwiki/piny/poop.overrides.pl + $config->{teximg_prefix} .= "\n\\newcommand{\\unit}[1]{\\ensuremath{\\, \\mathrm{#1}}}" + rebuildrepo poop |