Added deploydir to tomcat service
svn path=/nixos/trunk/; revision=10407
This commit is contained in:
parent
92fffa1ee8
commit
406d3aafc5
2 changed files with 6 additions and 1 deletions
|
@ -1050,6 +1050,11 @@
|
|||
default = "nobody";
|
||||
description = "User account under which Apache Tomcat runs.";
|
||||
};
|
||||
|
||||
deployFrom = mkOption {
|
||||
default = "";
|
||||
description = "Location where webapplications are stored. Leave empty to use the baseDir.";
|
||||
};
|
||||
};
|
||||
|
||||
httpd = {
|
||||
|
|
|
@ -5,7 +5,7 @@ let
|
|||
cfg = config.services.tomcat;
|
||||
tomcatService = import ../services/tomcat {
|
||||
inherit (pkgs) stdenv jdk tomcat6 su;
|
||||
inherit (cfg) baseDir user;
|
||||
inherit (cfg) baseDir user deployFrom;
|
||||
};
|
||||
|
||||
in
|
||||
|
|
Loading…
Reference in a new issue