86e32826dce2b780300d393239928aa3d55fe20e
[transportpce.git] / karaf / src / main / assembly / ressources / post_install_for_tests.sh
1 #!/bin/sh
2
3 cd $(dirname $0)
4
5 sed 's/2550/ODL_AKKA_PORT/' ../system/org/opendaylight/controller/sal-clustering-config/*/sal-clustering-config-*-akkaconf.xml >akka-default_template.conf
6 sed 's/8181/ODL_RESTCONF_PORT/' ../etc/org.ops4j.pax.web.cfg > org.ops4j.pax.web._template.cfg
7 sed 's/8181/ODL_RESTCONF_PORT/' ../etc/jetty.xml > jetty_template.xml
8 sed 's/8101/ODL_SHELL_PORT/' ../etc/org.apache.karaf.shell.cfg > org.apache.karaf.shell._template.cfg
9 sed -e 's/1099/ODL_RMI_REGISTRY_PORT/' -e 's/44444/ODL_RMI_SERVER_PORT/' ../etc/org.apache.karaf.management.cfg > org.apache.karaf.management._template.cfg
10
11 sed -i'_' -e '1 a\
12 \
13 . \$(dirname \$0)/\.\./\.\./\.\./\.\./tests/reflectwarn.sh\
14 \
15 if [ ! -f \$(dirname \$0)/\.\./ressources/karaf_configured ]; then\
16     \$(dirname \$0)/\.\./ressources/karaf_pre_launch.sh\
17 fi\
18 echo "karaf exec tainted for tests"\
19 \
20 ' ../bin/karaf