mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-07-13 21:50:33 +03:00
Added support for custom context.xml
svn path=/nixos/trunk/; revision=12513
This commit is contained in:
parent
afdfff7ed8
commit
f652a0836a
2 changed files with 16 additions and 2 deletions
|
@ -1467,12 +1467,17 @@
|
|||
|
||||
sharedLibFrom = mkOption {
|
||||
default = "";
|
||||
description ="Location where shared libraries are stored. Leave empty to use the baseDir.";
|
||||
description = "Location where shared libraries are stored. Leave empty to use the baseDir.";
|
||||
};
|
||||
|
||||
commonLibFrom = mkOption {
|
||||
default = "";
|
||||
description ="Location where common libraries are stored. Leave empty to use the baseDir.";
|
||||
description = "Location where common libraries are stored. Leave empty to use the baseDir.";
|
||||
};
|
||||
|
||||
contextXML = mkOption {
|
||||
default = "";
|
||||
description = "Location of the context.xml to use. Leave empty to use the default.";
|
||||
};
|
||||
};
|
||||
|
||||
|
|
|
@ -38,6 +38,15 @@ in
|
|||
cp -av ${pkgs.tomcat6}/{conf,temp,logs} ${cfg.baseDir}
|
||||
fi
|
||||
|
||||
# Deploy context.xml
|
||||
|
||||
if test "${cfg.contextXML}" = ""
|
||||
then
|
||||
cp ${pkgs.tomcat6}/conf/context.xml.default ${cfg.baseDir}/conf/context.xml
|
||||
else
|
||||
cp ${cfg.contextXML} ${cfg.baseDir}/conf/context.xml
|
||||
fi
|
||||
|
||||
# Deploy all webapplications
|
||||
|
||||
if ! test "${cfg.deployFrom}" = ""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue