From 63b17c9e32e9853fbe44b2c5f560d22c5d2cb10d Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 31 Mar 2025 14:10:34 +0200 Subject: [PATCH] echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd echo "logrotate:x:100:" >> /etc/group --- .../openbao-logging/grant-priviledges-to-logrotate.yaml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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