aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarco Capitani <m.capitani@nextworks.it>2017-11-15 15:24:49 +0100
committerSander Vrijders <sander.vrijders@ugent.be>2017-11-15 15:39:55 +0100
commit28a89b20caea996429515aba69d9332d690e8033 (patch)
tree416beb3edb977ecbaf436b3062d1a85fce6e6abe
parentfce53a4bc0b26278e3e90278b79e12304004b1ba (diff)
downloadrumba-28a89b20caea996429515aba69d9332d690e8033.tar.gz
rumba-28a89b20caea996429515aba69d9332d690e8033.zip
ssh_support: Fix dpkg wait script
This fixes the dpkg wait script as it was not being executed correctly.
-rw-r--r--rumba/ssh_support.py4
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)]