From ce70a02bd9d182e0fe41cf2d177ac9b506edb4f5 Mon Sep 17 00:00:00 2001
From: Erik Reid <erik.reid@geant.org>
Date: Sun, 14 Feb 2021 11:37:56 +0100
Subject: [PATCH] chown to inventory provider after installing as root

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

diff --git a/install-sdist-to-test.py b/install-sdist-to-test.py
index 403da6b4..056f34cc 100644
--- a/install-sdist-to-test.py
+++ b/install-sdist-to-test.py
@@ -34,6 +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}',
+        f'chown -R inventory.inventory /home/inventory/venv',
         'exit'
     ]
     stdin.write('\n'.join(commands) + '\n')
-- 
GitLab