Use environment variables for OLM timers
[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 sed 's/^[#|]websocket-port=8185/websocket-port=ODL_WEBSOCKET_PORT/' ../system/org/opendaylight/netconf/sal-rest-connector-config/[0-9.]*/sal-rest-connector-config-[0-9.]*-restconf.cfg >org.opendaylight.restconf._template.cfg
11
12 sed -i'_' -e '1 a\
13 \
14 . \$(dirname \$0)/\.\./\.\./\.\./\.\./tests/reflectwarn.sh\
15 \
16 if [ ! -f \$(dirname \$0)/\.\./ressources/karaf_configured ]; then\
17     \$(dirname \$0)/\.\./ressources/karaf_pre_launch.sh\
18 fi\
19 echo "karaf exec tainted for tests"\
20 \
21 ' ../bin/karaf