diff options
-rw-r--r-- | rumba/ssh_support.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rumba/ssh_support.py b/rumba/ssh_support.py index 7b9112a..ccff321 100644 --- a/rumba/ssh_support.py +++ b/rumba/ssh_support.py @@ -347,8 +347,8 @@ def aptitude_install(testbed, node, packages): package_install += package + " " package_install += "--yes" - cmds = [sudo("while fuser /var/lib/dpkg/lock > /dev/null 2>&1 " + - "do sleep 1; echo \"Waiting for dpkg...\"; done"), + cmds = [sudo("sh -c 'while fuser /var/lib/dpkg/lock > /dev/null 2>&1; " + + "do sleep 1; echo \"Waiting for dpkg...\"; done'"), sudo("apt-get update"), sudo(package_install)] |