wrapper/docker: create .ssh dir with correct perms (700)

This commit is contained in:
InsanePrawn 2022-08-11 06:23:48 +02:00
parent 068009185c
commit bb3a7d4881

View file

@ -64,7 +64,7 @@ class DockerWrapper(BaseWrapper):
ssh_dir = os.path.join(pathlib.Path.home(), '.ssh')
if not os.path.exists(ssh_dir):
os.makedirs(ssh_dir)
os.makedirs(ssh_dir, mode=0o700)
volumes = self.get_bind_mounts_default(wrapped_config)
volumes |= dict({config.get_path(vol_name): vol_dest for vol_name, vol_dest in DOCKER_PATHS.items()})
docker_cmd = [