[manage.py] getUid(): Add support for containers running as host user

This commit is contained in:
Viyurz 2024-10-01 10:40:53 +02:00
parent 0cc391455b
commit 6dc707bb2d
Signed by: Viyurz
SSH key fingerprint: SHA256:IskOHTmhHSJIvAt04N6aaxd5SZCVWW1Guf9tEcxIMj8

View file

@ -17,7 +17,11 @@ def getImageId (image):
def getUid(service): def getUid(service):
return env['users'][service] + env['uid_shift'] if service in env['users'].keys():
user = env['users'][service]
else:
user = 0
return user + env['uid_shift']
def pullProj(project): def pullProj(project):