diff options
author | HÃ¥kon Hallingstad <hakon.hallingstad@gmail.com> | 2021-10-18 15:31:53 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-10-18 15:31:53 +0200 |
commit | eff16a80a323f9f23ca2d9054180f53c6300986c (patch) | |
tree | 634895f1cd2e8af222179018489109e0edfa020f | |
parent | 29d98673036b707a53b02400c0537e6d152cb1fe (diff) |
Revert "Change ownership of directory to container's user"
-rw-r--r-- | node-admin/src/main/java/com/yahoo/vespa/hosted/node/admin/maintenance/servicedump/VespaServiceDumperImpl.java | 5 |
1 files changed, 2 insertions, 3 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 ab0bcd74559..23a6ed2aa8c 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,9 +100,8 @@ public class VespaServiceDumperImpl implements VespaServiceDumper { directoryOnHost.deleteRecursively(); } context.log(log, Level.INFO, "Creating '" + directoryOnHost +"'."); - directoryOnHost.createDirectory("rwxr-x---") - .setOwner(context.userNamespace().vespaUser()) - .setGroup(context.userNamespace().vespaGroup()); + directoryOnHost.createDirectory(); + directoryOnHost.setPermissions("rwxrwxrwx"); URI destination = serviceDumpDestination(nodeSpec, createDumpId(request)); ProducerContext producerCtx = new ProducerContext(context, directoryInNode.toPath(), request); List<Artifact> producedArtifacts = new ArrayList<>(); |