echo "logrotate❌100💯:/home/logrotate:/bin/sh" >> /etc/passwd
echo "logrotate❌100:" >> /etc/group
This commit is contained in:
parent
f13bf825ff
commit
63b17c9e32
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue