We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6df2cd0 commit 4bd58bfCopy full SHA for 4bd58bf
1 file changed
server/src/com/cloud/server/ConfigurationServerImpl.java
@@ -571,7 +571,7 @@ protected void updateKeyPairs() {
571
s_logger.info("Systemvm keypairs not found in database. Need to store them in the database");
572
}
573
//FIXME: take a global database lock here for safety.
574
- Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then true ; else yes '' | ssh-keygen -t rsa -q ; fi");
+ Script.runSimpleBashScript("if [ -f ~/.ssh/id_rsa ] ; then rm -f ~/.ssh/id_rsa ; fi; ssh-keygen -t rsa -N '' -f ~/.ssh/id_rsa -q");
575
576
byte[] arr1 = new byte[4094]; // configuration table column value size
577
try {
0 commit comments