From 9a197ca240568250827fe977a065ee84de93c7db Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Tue, 2 Mar 2021 08:09:39 +0100
Subject: [PATCH] forgot to su for chown

---
 install-sdist-to-test.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/install-sdist-to-test.py b/install-sdist-to-test.py
index e4a58b91..e67afbbb 100644
--- a/install-sdist-to-test.py
+++ b/install-sdist-to-test.py
@@ -34,7 +34,7 @@ def _install_proc(hostname, username, password, sdist):
         f'sudo su - -c \'{pip} uninstall -y inventory\'',
         f'sudo su - -c \'{pip} install {scp_destination}\'',
         f'rm {scp_destination}',
-        'chown -R inventory.inventory /home/inventory/venv',
+        'sudo su - -c \'chown -R inventory.inventory /home/inventory/venv\'',
         'exit'
     ]
     stdin.write('\n'.join(commands) + '\n')
-- 
GitLab