From 28a89b20caea996429515aba69d9332d690e8033 Mon Sep 17 00:00:00 2001 From: Marco Capitani Date: Wed, 15 Nov 2017 15:24:49 +0100 Subject: ssh_support: Fix dpkg wait script This fixes the dpkg wait script as it was not being executed correctly. --- rumba/ssh_support.py | 4 ++-- 1 file 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)] -- cgit v1.2.3