This is an automated email from the ASF dual-hosted git repository. potiuk pushed a commit to branch v1-10-test in repository https://gitbox.apache.org/repos/asf/airflow.git
commit d2ad37e5ce89029582f3b2cac4a3055703f6d393 Author: mucio <[email protected]> AuthorDate: Tue Oct 6 10:40:32 2020 +0200 Breeze start-airflow command wasn't able to initialize the db in 1.10.x (#11207) (cherry picked from commit 03e0ff24b16c63ba041a47be433aa83cf6bb744a) --- scripts/in_container/check_environment.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/scripts/in_container/check_environment.sh b/scripts/in_container/check_environment.sh index 0a040a9..793dfe1 100755 --- a/scripts/in_container/check_environment.sh +++ b/scripts/in_container/check_environment.sh @@ -111,10 +111,11 @@ function startairflow_if_requested() { . "$( dirname "${BASH_SOURCE[0]}" )/configure_environment.sh" - # initialize db - airflow initdb - if [[ ${RBAC_UI} == "true" ]]; then - # For rbac UI create the admin user if it's a new run + # initialize db and create the admin user if it's a new run + if [[ ${RUN_AIRFLOW_1_10} == "true" ]]; then + airflow initdb + airflow create_user -u admin -p admin -f Thor -l Adminstra -r Admin -e [email protected] || true + else airflow create_user -u admin -p admin -f Thor -l Adminstra -r Admin -e [email protected] fi
