francescomucio commented on a change in pull request #11207:
URL: https://github.com/apache/airflow/pull/11207#discussion_r497617047



##########
File path: scripts/in_container/check_environment.sh
##########
@@ -107,8 +107,12 @@ 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
+        else
+            airflow db init
+            airflow users create -u admin -p admin -f Thor -l Adminstra -r 
Admin -e [email protected]

Review comment:
       Actually that line is only for version 2 onward, but it gave me an idea 
to include `create_user` also for the RBAC setup. See my next commit.




----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
[email protected]


Reply via email to