Skip to content

Commit

Permalink
Remove the -maxdepth flag from find (#807)
Browse files Browse the repository at this point in the history
* Remove the -maxdepth flag from find.

This makes sure all the folders that already exist when the pod starts
are group-writable.

* Use \; -exec syntax instead of +.
  • Loading branch information
robertodauria authored May 25, 2023
1 parent a8f8bde commit 53a4860
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion k8s/daemonsets/templates.jsonnet
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,7 @@ local setDataDirOwnership(name) = {
'/bin/sh',
'-c',
'cd ' + dataDir + ' && chown -R 65534:65534 . && ' +
'find . -maxdepth 1 -type d -exec chmod 2775 {} +',
'find . -type d -exec chmod 2775 {} \\;',
],
securityContext: {
runAsUser: 0,
Expand Down

0 comments on commit 53a4860

Please sign in to comment.