Skip to content

Commit 42ca8ed

Browse files
committed
systemvm: fix keystore is reset when patch a systemvm
1 parent a6cef7a commit 42ca8ed

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

systemvm/patch-sysvms.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -122,6 +122,9 @@ patch_systemvm() {
122122
echo "Restored keystore file and certs using backup" >> $logfile 2>&1
123123
fi
124124

125+
# Import global cacerts into 'cloud' service's keystore
126+
keytool -importkeystore -srckeystore /etc/ssl/certs/java/cacerts -destkeystore /usr/local/cloud/systemvm/certs/realhostip.keystore -srcstorepass changeit -deststorepass vmops.com -noprompt || true
127+
125128
update_checksum $newpath/cloud-scripts.tgz
126129

127130
if [ "$TYPE" == "consoleproxy" ] || [ "$TYPE" == "secstorage" ] || [[ "$TYPE" == *router ]]; then

0 commit comments

Comments
 (0)