chown 100:100 /etc/passwd

This commit is contained in:
miwr 2025-04-01 10:50:59 +02:00
parent 6df0858cdf
commit 77b571b768
2 changed files with 1 additions and 12 deletions

View file

@ -21,6 +21,7 @@ spec:
set -e
mkdir -p /var/log/openbao
chown 100:100 /var/log/openbao
chown 100:100 /etc/passwd
chmod o+rwx /var/log/openbao
echo "logrotate:x:100:100::/home/logrotate:/bin/sh" >> /etc/passwd
echo "logrotate:x:100:" >> /etc/group

View file

@ -1,17 +1,5 @@
server:
shareProcessNamespace: true
extraInitContainers:
- name: init
image: alpine:latest
securityContext:
runAsUser: 0
volumeMounts:
- name: alloy-data
mountPath: /var/lib/alloy
- name: config-volume
mountPath: /etc/alloy
- name: host-log-storage
mountPath: /openbao/logs
extraContainers:
- name: grafana-alloy
image: grafana/alloy:latest