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 abe7aa9..31f85ae 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 @@ -19,7 +19,9 @@ spec: args: - | set -e - chown 100:100 /var/lib + echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd + echo "logrotate:x:100:" >> /etc/group + chown logrotate:logrotate /var/lib tail -f /dev/null securityContext: runAsUser: 0