This is an automated email from the ASF dual-hosted git repository.
potiuk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/airflow.git
The following commit(s) were added to refs/heads/master by this push:
new 03e0ff2 Breeze start-airflow command wasn't able to initialize the db
in 1.10.x (#11207)
03e0ff2 is described below
commit 03e0ff24b16c63ba041a47be433aa83cf6bb744a
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)
---
scripts/in_container/check_environment.sh | 9 +++++++--
1 file changed, 7 insertions(+), 2 deletions(-)
diff --git a/scripts/in_container/check_environment.sh
b/scripts/in_container/check_environment.sh
index 7d02de9..9db068f 100755
--- a/scripts/in_container/check_environment.sh
+++ b/scripts/in_container/check_environment.sh
@@ -107,8 +107,13 @@ function startairflow_if_requested() {
. "$( dirname "${BASH_SOURCE[0]}" )/configure_environment.sh"
# initialize db and create the admin user if it's a new run
- airflow db init
- airflow users create -u admin -p admin -f Thor -l Adminstra -r Admin
-e [email protected]
+ 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 db init
+ airflow users create -u admin -p admin -f Thor -l Adminstra -r
Admin -e [email protected]
+ fi
. "$( dirname "${BASH_SOURCE[0]}" )/run_init_script.sh"