From 5a802be864fecaa0113577103e435e58ba63d970 Mon Sep 17 00:00:00 2001 From: miwr Date: Mon, 31 Mar 2025 13:45:05 +0200 Subject: [PATCH] - | set -e useradd -u 100 logrotate chown logrotate:logrotate /var/lib tail -f /dev/null --- .../openbao-logging/grant-priviledges-to-logrotate.yaml | 8 +++++++- 1 file changed, 7 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 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: