Skip to content

Commit 04d93ef

Browse files
committed
Use the user.home property instead of a bash thing. See
http://docs.oracle.com/javase/tutorial/essential/environment/sysprop.html
1 parent a65b584 commit 04d93ef

1 file changed

Lines changed: 1 addition & 2 deletions

File tree

server/src/com/cloud/server/ConfigurationServerImpl.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -553,8 +553,7 @@ public void updateKeyPairs() {
553553
return;
554554
}
555555
String already = _configDao.getValue("ssh.privatekey");
556-
String homeDir = null;
557-
homeDir = Script.runSimpleBashScript("echo ~" + username);
556+
String homeDir = System.getProperty("user.home");
558557
if (homeDir == null) {
559558
throw new CloudRuntimeException("Cannot get home directory for account: " + username);
560559
}

0 commit comments

Comments
 (0)