10 lines
232 B
Bash
10 lines
232 B
Bash
|
#!/bin/sh
|
||
|
|
||
|
set -xe
|
||
|
|
||
|
sudo chown airflow:airflow airflow
|
||
|
airflow db init
|
||
|
|
||
|
# Allow non-authenticated access to UI for Airflow 2.*
|
||
|
sed -i.bak -E 's/^(# )?(AUTH_ROLE_PUBLIC) = .*$/\2 = "Admin"/' /home/airflow/airflow/webserver_config.py
|