- |
set -e useradd -u 100 logrotate chown logrotate:logrotate /var/lib tail -f /dev/null
This commit is contained in:
parent
bc6ed363e2
commit
5a802be864
1 changed files with 7 additions and 1 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue