a39ebb4f9c0a41bfb1a2e57c0171c53dec4259f2
[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 echo 'timer1=3000' >../etc/org.opendaylight.transportpce.olm.cfg
13 echo 'timer2=2000' >>../etc/org.opendaylight.transportpce.olm.cfg
14
15 sed -i'_' -e '1 a\
16 \
17 . \$(dirname \$0)/\.\./\.\./\.\./\.\./tests/reflectwarn.sh\
18 \
19 if [ ! -f \$(dirname \$0)/\.\./ressources/karaf_configured ]; then\
20     \$(dirname \$0)/\.\./ressources/karaf_pre_launch.sh\
21 fi\
22 echo "karaf exec tainted for tests"\
23 \
24 ' ../bin/karaf