summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2015-07-08 23:24:42 +0200
committertv <tv@krebsco.de>2015-07-08 23:24:42 +0200
commit9af70be683fcf2bf098ebe85841153bc1b764c76 (patch)
tree146cc9c71ce2720139d854b8982284764b927298
parentdd17ab0ec6594ebc0437fcede50bec44df275d78 (diff)
tv.git cgit: mkdir /tmp/cgit on activation
-rw-r--r--modules/tv/git/cgit.nix7
1 files changed, 6 insertions, 1 deletions
diff --git a/modules/tv/git/cgit.nix b/modules/tv/git/cgit.nix
index a3b72bf..747a931 100644
--- a/modules/tv/git/cgit.nix
+++ b/modules/tv/git/cgit.nix
@@ -39,7 +39,7 @@ in
virtual-root=/cgit
- # TODO make this nicer
+ # TODO make this nicer (and/or somewhere else)
cache-root=/tmp/cgit
cache-size=1000
@@ -64,6 +64,11 @@ in
'') (filter isPublicRepo (attrValues cfg.repos))}
'';
+ system.activationScripts.cgit = ''
+ mkdir -m 0700 -p /tmp/cgit
+ chown fcgiwrap: /tmp/cgit
+ '';
+
tv.nginx = {
enable = true;
retiolum-locations = [