aboutsummaryrefslogtreecommitdiffstats
path: root/plans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh
diff options
context:
space:
mode:
Diffstat (limited to 'plans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh')
-rwxr-xr-xplans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/plans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh b/plans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh
new file mode 100755
index 00000000..c5501d40
--- /dev/null
+++ b/plans/usecases/pnf-sw-upgrade/cds/resources/importCerAndStartService.sh
@@ -0,0 +1,11 @@
+#!/bin/sh
+
+chmod -R 775 /opt/app/onap/res
+cp -f /opt/app/onap/res/application.properties /opt/app/onap/config
+cp -f /opt/app/onap/res/error-messages_en.properties /opt/app/onap/config
+
+echo "importing aai cert."
+keytool -import -noprompt -trustcacerts -keystore $JAVA_HOME/jre/lib/security/cacerts -storepass changeit -alias aai -import -file /opt/app/onap/res/aai.cert
+
+echo "starting service."
+source /startService.sh \ No newline at end of file