add a second init step for postgres

Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
Simon L 2023-05-03 17:22:55 +02:00
parent 844382d220
commit 93748f9644

View file

@ -56,12 +56,16 @@ cat << EOL > /tmp/initcontainers
EOL
cat << EOL > /tmp/initcontainers.database
initContainers:
- name: init-volumes
- init-subpath
image: alpine
command:
- mkdir
- "-p"
- /nextcloud-aio-database/data;
- /nextcloud-aio-database/data
volumeMountsInitContainer:
- name: init-volumes
image: alpine
command:
- chown
- 999:999
- "-R"