Added support for custom context.xml
svn path=/nixos/trunk/; revision=12513
This commit is contained in:
parent
afdfff7ed8
commit
f652a0836a
@ -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…
x
Reference in New Issue
Block a user