mirror of
https://github.com/NixOS/nixpkgs.git
synced 2024-12-15 18:23:09 +00:00
Implemented support for per application configuration files
svn path=/nixos/trunk/; revision=16668
This commit is contained in:
parent
c21b02d34b
commit
e8103aa39d
@ -211,6 +211,15 @@ mkIf config.services.tomcat.enable {
|
|||||||
do
|
do
|
||||||
ln -sf $j ${cfg.baseDir}/webapps/`basename $j`
|
ln -sf $j ${cfg.baseDir}/webapps/`basename $j`
|
||||||
done
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -238,6 +247,15 @@ mkIf config.services.tomcat.enable {
|
|||||||
do
|
do
|
||||||
ln -sf $j ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $j`
|
ln -sf $j ${cfg.baseDir}/virtualhosts/${virtualHost.name}/webapps/`basename $j`
|
||||||
done
|
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
|
fi
|
||||||
done
|
done
|
||||||
|
|
||||||
@ -275,6 +293,15 @@ mkIf config.services.tomcat.enable {
|
|||||||
do
|
do
|
||||||
ln -sf $j ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $j`
|
ln -sf $j ${cfg.baseDir}/webapps/axis2/WEB-INF/services/`basename $j`
|
||||||
done
|
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
|
fi
|
||||||
done
|
done
|
||||||
''
|
''
|
||||||
|
Loading…
Reference in New Issue
Block a user