Exit init script immediately on error (#16758)

This commit is contained in:
André Buse 2021-09-27 04:16:26 +02:00 committed by GitHub
parent c520eb79b0
commit ef95458547
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 1 deletions

View File

@ -22,7 +22,7 @@ maintainers:
- name: craig-rueda
email: craig@craigrueda.com
url: https://github.com/craig-rueda
version: 0.3.8
version: 0.3.9
dependencies:
- name: postgresql
version: 10.2.0

View File

@ -302,6 +302,7 @@ init:
command: [ "/bin/sh", "-c", "until nc -zv $DB_HOST $DB_PORT -w1; do echo 'waiting for db'; sleep 1; done" ]
initscript: |-
#!/bin/sh
set -eu
echo "Upgrading DB schema..."
superset db upgrade
echo "Initializing roles..."