diff options
author | Bjørn Christian Seime <bjorncs@verizonmedia.com> | 2021-10-18 14:55:11 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 14:55:11 +0200 |
commit | 498f73935abc747013f8ff86614852d3a819c51f (patch) | |
tree | 4be35470a4eb643a2dfe9bfa5d9379440987a1cf /node-admin/src | |
parent | 42e8b5ed9678e76b33fb861c09a65fc8ef52bfa7 (diff) | |
parent | 689b8a3d82dc3b3dc0694fd5b9293fff238d1f70 (diff) |
Merge pull request #19614 from vespa-engine/bjorncs/fix
Set permissions afterwards so it's not affected by umask
Diffstat (limited to 'node-admin/src')
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java index 59f5e0f3f40..45fceb93e41 100644 --- a/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java +++ b/node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java @@ -100,7 +100,8 @@ public class VespaServiceDumperImpl implements VespaServiceDumper { unixPathDirectory.deleteRecursively(); } context.log(log, Level.INFO, "Creating '" + unixPathDirectory +"'."); - unixPathDirectory.createDirectory("rwxrwxrwx"); + unixPathDirectory.createDirectory(); + unixPathDirectory.setPermissions("rwxrwxrwx"); URI destination = serviceDumpDestination(nodeSpec, createDumpId(request)); ProducerContext producerCtx = new ProducerContext(context, directory, request); List<Artifact> producedArtifacts = new ArrayList<>(); |