aboutsummaryrefslogtreecommitdiffstats
path: root/resources
diff options
context:
space:
mode:
authorSchmalzried, Terry (ts862m) <ts862m@att.com>2020-07-24 16:40:28 -0400
committerSchmalzried, Terry (ts862m) <ts862m@att.com>2020-07-24 16:40:47 -0400
commit7b307d309bc01b2c13527342dae623231ea5d9ad (patch)
treea9a1223550710de72a1099cc5a420f3d8cba0d95 /resources
parent77248eb6d83ac2a124b273874a6c036ff6332721 (diff)
Fix cacert
Change baseimage to permit chmod keystore to allow adding onap cacert Issue-ID: DCAEGEN2-2330 Change-Id: Ida2b70466d306afdd686d3b321e952169ee1b229 Signed-off-by: Schmalzried, Terry (ts862m) <ts862m@att.com>
Diffstat (limited to 'resources')
-rwxr-xr-xresources/sch.sh5
1 files changed, 2 insertions, 3 deletions
diff --git a/resources/sch.sh b/resources/sch.sh
index c4e4dab..52fb8d6 100755
--- a/resources/sch.sh
+++ b/resources/sch.sh
@@ -1,6 +1,6 @@
#!/bin/bash
# ================================================================================
-# Copyright (c) 2017-2019 AT&T Intellectual Property. All rights reserved.
+# Copyright (c) 2017-2020 AT&T Intellectual Property. All rights reserved.
# ================================================================================
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
@@ -40,8 +40,7 @@ fi
# Add the cacert to validate inventory's cert to support TLS. This command is
# allowed to fail when there is no need for https.
# NOTE: This user must have permission to write to /usr/local/openjdk-11/lib/security/cacerts
-keytool -importcert -file $PATH_TO_CACERT -keystore /usr/local/openjdk-11/lib/security/cacerts -alias "inventory" -noprompt -storepass changeit
+keytool -importcert -file $PATH_TO_CACERT -cacerts -alias "inventory" -noprompt -storepass changeit
# Now launch SCH
java -jar /opt/servicechange-handler.jar $SCH_ARGS
-