1
0
mirror of https://github.com/rwengine/openrw.git synced 2024-10-06 09:07:19 +02:00

Ensure correct ownership of /build and /src directories in container

This commit is contained in:
Daniel Evans 2018-02-01 00:36:45 +00:00
parent be879ea97e
commit 1e48602c59

View File

@ -41,6 +41,8 @@ def create(ns: argparse.Namespace):
sub_run(['docker', 'exec', ns.name, 'groupadd', '--gid', str(gid), ns.username])
sub_run(['docker', 'exec', ns.name, 'useradd', '--create-home',
'--uid', str(ns.uid), '-g', ns.username, ns.username])
sub_run(['docker', 'exec', ns.name, 'chown', '{0}:{0}'.format(ns.username),
'/build', '/src'])
def exec(ns: argparse.Namespace):