- |
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:
|
initContainers:
|
||||||
- name: creator
|
- name: creator
|
||||||
image: busybox
|
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:
|
securityContext:
|
||||||
runAsUser: 0
|
runAsUser: 0
|
||||||
containers:
|
containers:
|
||||||
|
|
Reference in a new issue