Skip to content

Commit

Permalink
systemvm: fix keystore is reset when patch a systemvm (#9900)
Browse files Browse the repository at this point in the history
  • Loading branch information
weizhouapache authored Jan 13, 2025
1 parent fce7773 commit 35fe19f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions systemvm/patch-sysvms.sh
Original file line number Diff line number Diff line change
Expand Up @@ -122,6 +122,9 @@ patch_systemvm() {
echo "Restored keystore file and certs using backup" >> $logfile 2>&1
fi

# Import global cacerts into 'cloud' service's keystore
keytool -importkeystore -srckeystore /etc/ssl/certs/java/cacerts -destkeystore /usr/local/cloud/systemvm/certs/realhostip.keystore -srcstorepass changeit -deststorepass vmops.com -noprompt || true

update_checksum $newpath/cloud-scripts.tgz

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

0 comments on commit 35fe19f

Please sign in to comment.