Skip to content

Commit

Permalink
Fixing conf
Browse files Browse the repository at this point in the history
  • Loading branch information
mistercrunch committed Nov 10, 2014
1 parent 60ed198 commit 65b1988
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -6,5 +6,6 @@ dist
env
initdb.py
logs
*.cfg
MANIFEST
secrets.py
File renamed without changes.
6 changes: 5 additions & 1 deletion init.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,8 @@
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

# 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

0 comments on commit 65b1988

Please sign in to comment.