Skip to content

Commit d9ce538

Browse files
weizhouapachedhslove
authored andcommitted
systemvm: fix keystore is reset when patch a systemvm (apache#9900)
1 parent 5a8872e commit d9ce538

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
@@ -124,6 +124,9 @@ patch_systemvm() {
124124
echo "Restored keystore file and certs using backup" >> $logfile 2>&1
125125
fi
126126

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

129132
if [ -f /opt/cloud/bin/setup/patch.sh ];then

0 commit comments

Comments
 (0)