Skip to content

Commit

Permalink
adding a sed comand to replace airflow_home automatically in default …
Browse files Browse the repository at this point in the history
…airflow.cfg
  • Loading branch information
Krishna Puttaswamy committed Nov 7, 2014
1 parent f89c1bc commit 3361696
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/airflow.cfg
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
[core]
AIRFLOW_HOME: /Users/krishna_puttaswamy/workspace/Airflow
AIRFLOW_HOME: TO_REPLACE_FROM_OS_ENVIRON
BASE_LOG_FOLDER: %(AIRFLOW_HOME)s/logs
DAGS_FOLDER: %(AIRFLOW_HOME)s/dags
BASE_FOLDER: %(AIRFLOW_HOME)s/airflow
Expand Down
1 change: 1 addition & 0 deletions init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,4 @@
source $AIRFLOW_HOME/env/bin/activate
export PYTHONPATH=$AIRFLOW_HOME
export AIRFLOW_CONFIG_PATH=$AIRFLOW_HOME/airflow/airflow.cfg
sed -i .bk "s#TO_REPLACE_FROM_OS_ENVIRON#$AIRFLOW_HOME#" $AIRFLOW_CONFIG_PATH

0 comments on commit 3361696

Please sign in to comment.