echo "logrotate100💯:/home/logrotate:/bin/sh" >> /etc/passwd

echo "logrotate100:" >> /etc/group
This commit is contained in:
miwr 2025-03-31 14:10:34 +02:00
parent f13bf825ff
commit 63b17c9e32

View file

@ -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