You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cloudstack.apache.org by da...@apache.org on 2025/01/13 08:40:17 UTC
(cloudstack) branch 4.19 updated: systemvm: fix keystore is reset when patch a systemvm (#9900)
This is an automated email from the ASF dual-hosted git repository.
dahn pushed a commit to branch 4.19
in repository https://gitbox.apache.org/repos/asf/cloudstack.git
The following commit(s) were added to refs/heads/4.19 by this push:
new 35fe19f096d systemvm: fix keystore is reset when patch a systemvm (#9900)
35fe19f096d is described below
commit 35fe19f096dd38987bd1f892c78e9cce42c05c49
Author: Wei Zhou <we...@apache.org>
AuthorDate: Mon Jan 13 09:40:12 2025 +0100
systemvm: fix keystore is reset when patch a systemvm (#9900)
---
systemvm/patch-sysvms.sh | 3 +++
1 file changed, 3 insertions(+)
diff --git a/systemvm/patch-sysvms.sh b/systemvm/patch-sysvms.sh
index 554218c9878..dfe39fd8e00 100644
--- a/systemvm/patch-sysvms.sh
+++ b/systemvm/patch-sysvms.sh
@@ -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