11 строки
396 B
Bash
11 строки
396 B
Bash
#!/bin/bash
|
|
source $AIRFLOW_HOME/env/bin/activate
|
|
export PYTHONPATH=$AIRFLOW_HOME
|
|
export AIRFLOW_CONFIG_PATH=$AIRFLOW_HOME/airflow/airflow.cfg
|
|
export PATH=$PATH:$AIRFLOW_HOME/airflow/bin
|
|
|
|
# Create the conf file from template if it doesn't exist
|
|
if [ ! -f $AIRFLOW_CONFIG_PATH ]; then
|
|
sed "s#TO_REPLACE_FROM_OS_ENVIRON#$AIRFLOW_HOME#" ${AIRFLOW_CONFIG_PATH}.template > $AIRFLOW_CONFIG_PATH
|
|
fi
|