diff --git a/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml b/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml index 163cba2..3c26b74 100644 --- a/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml +++ b/template/stacks/ref-implementation/openbao-logging/grant-priviledges-to-logrotate.yaml @@ -15,7 +15,13 @@ spec: initContainers: - name: creator image: busybox - command: ["/bin/sh", "-c", "useradd -u 100 logrotate && tail -f /dev/null", "chown logrotate:logrotate /var/lib"] + command: ["/bin/sh", "-c"] + args: + - | + set -e + useradd -u 100 logrotate + chown logrotate:logrotate /var/lib + tail -f /dev/null securityContext: runAsUser: 0 containers: