brooklyn-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From s...@apache.org
Subject [1/5] brooklyn-server git commit: Fix MAP_DEV_RANDOM_TO_DEV_URANDOM for running as root
Date Mon, 26 Sep 2016 16:37:18 GMT
Repository: brooklyn-server
Updated Branches:
  refs/heads/master 57fabdf8c -> 63b368d07


Fix MAP_DEV_RANDOM_TO_DEV_URANDOM for running as root

Fixes JcloudsLoginLiveTest.testSpecifyingPasswordWhenNoDefaultKeyFilesExistWithRootUser

Project: http://git-wip-us.apache.org/repos/asf/brooklyn-server/repo
Commit: http://git-wip-us.apache.org/repos/asf/brooklyn-server/commit/d49441d1
Tree: http://git-wip-us.apache.org/repos/asf/brooklyn-server/tree/d49441d1
Diff: http://git-wip-us.apache.org/repos/asf/brooklyn-server/diff/d49441d1

Branch: refs/heads/master
Commit: d49441d18093a9967cc9d7050dfdbbb4f6d881ba
Parents: 21a3664
Author: Aled Sage <aled.sage@gmail.com>
Authored: Fri Sep 23 19:04:58 2016 +0100
Committer: Aled Sage <aled.sage@gmail.com>
Committed: Fri Sep 23 19:04:58 2016 +0100

----------------------------------------------------------------------
 .../org/apache/brooklyn/location/jclouds/JcloudsLocation.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/brooklyn-server/blob/d49441d1/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
----------------------------------------------------------------------
diff --git a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
index 11412d6..dc4b93c 100644
--- a/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
+++ b/locations/jclouds/src/main/java/org/apache/brooklyn/location/jclouds/JcloudsLocation.java
@@ -909,7 +909,9 @@ public class JcloudsLocation extends AbstractCloudMachineProvisioningLocation
im
                         executeCommandThrowingOnError(
                                 (SshMachineLocation)machineLocation,
                                 "using urandom instead of random",
-                                Arrays.asList("sudo mv /dev/random /dev/random-real", "sudo
ln -s /dev/urandom /dev/random"));
+                                Arrays.asList(
+                                        BashCommands.sudo("mv /dev/random /dev/random-real"),

+                                        BashCommands.sudo("ln -s /dev/urandom /dev/random")));
                     }
                 }
 


Mime
View raw message