krebs.git: add cgit-clear-cache
This commit is contained in:
parent
059d7b2d05
commit
08c7671fc5
|
@ -389,6 +389,12 @@ let
|
|||
mapAttrsToList repo-to-cgitrc cfg.repos
|
||||
));
|
||||
|
||||
environment.systemPackages = [
|
||||
(pkgs.writeDashBin "cgit-clear-cache" ''
|
||||
${pkgs.coreutils}/bin/rm -f ${cfg.cgit.settings.cache-root}/*
|
||||
'')
|
||||
];
|
||||
|
||||
system.activationScripts.cgit = ''
|
||||
mkdir -m 0700 -p ${cfg.cgit.settings.cache-root}
|
||||
chown ${toString cfg.cgit.fcgiwrap.user.uid}:${toString cfg.cgit.fcgiwrap.group.gid} ${cfg.cgit.settings.cache-root}
|
||||
|
|
Loading…
Reference in a new issue