Implemented support for per application configuration files

svn path=/nixos/trunk/; revision=16668
This commit is contained in:
Sander van der Burg 2009-08-11 09:40:31 +00:00
parent c21b02d34b
commit e8103aa39d

View file

@ -211,6 +211,15 @@ mkIf config.services.tomcat.enable {
do
ln -sf $j ${cfg.baseDir}/webapps/`basename $j`
done
# Also symlink the configuration files if they are included
if [ -d $i/conf/Catalina ]
then
for j in $i/conf/Catalina/*
do
ln -sf $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
done
fi
fi
done
@ -238,6 +247,15 @@ mkIf config.services.tomcat.enable {
do
ln -sf $j ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $j`
done
# Also symlink the configuration files if they are included
if [ -d $i/conf/Catalina ]
then
for j in $i/conf/Catalina/*
do
ln -sf $j ${cfg.baseDir}/conf/Catalina/${virtualHost.name}/`basename $j`
done
fi
fi
done
@ -275,6 +293,15 @@ mkIf config.services.tomcat.enable {
do
ln -sf $j ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $j`
done
# Also symlink the configuration files if they are included
if [ -d $i/conf/Catalina ]
then
for j in $i/conf/Catalina/*
do
ln -sf $j ${cfg.baseDir}/conf/Catalina/localhost/`basename $j`
done
fi
fi
done
''