tv.git cgit: mkdir /tmp/cgit on activation

This commit is contained in:
tv 2015-07-08 23:24:42 +02:00
parent e7f737f1eb
commit 8e56049eab

View File

@ -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 = [