Skip to content
Snippets Groups Projects
Commit 8fa4b6d8 authored by Christian Boettcher's avatar Christian Boettcher
Browse files

fully remove dag dir instead of specifically removing hidden files

parent 37fb71f4
No related branches found
No related tags found
No related merge requests found
Pipeline #128261 passed
...@@ -40,7 +40,7 @@ echo "Proceeding as user $(whoami)" ...@@ -40,7 +40,7 @@ echo "Proceeding as user $(whoami)"
# Make the necessary folders for the airflow artefacts and copy the corresponging content # Make the necessary folders for the airflow artefacts and copy the corresponging content
mkdir -p ./dags ./logs ./plugins ./config ./templates mkdir -p ./dags ./logs ./plugins ./config ./templates
cd $GIT_REPO cd $GIT_REPO
rm -rf $AIRFLOW_DIR/dags/* && rm -rf $AIRFLOW_DIR/dags/.git && rm -rf $AIRFLOW_DIR/dags/.gitignore && git clone $DAG_GIT_URL $AIRFLOW_DIR/dags rm -rf $AIRFLOW_DIR/dags && mkdir $AIRFLOW_DIR/dags && git clone $DAG_GIT_URL $AIRFLOW_DIR/dags
cp -r plugins/* $AIRFLOW_DIR/plugins cp -r plugins/* $AIRFLOW_DIR/plugins
cp config/* $AIRFLOW_DIR/config/ cp config/* $AIRFLOW_DIR/config/
cp -r templates/* $AIRFLOW_DIR/templates cp -r templates/* $AIRFLOW_DIR/templates
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment