From 8fa4b6d8f1ad9b0581e28edf3803f10e81dede57 Mon Sep 17 00:00:00 2001 From: Christian Boettcher <c.boettcher@fz-juelich.de> Date: Fri, 10 Feb 2023 12:50:17 +0100 Subject: [PATCH] fully remove dag dir instead of specifically removing hidden files --- scripts/deployment.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/deployment.sh b/scripts/deployment.sh index 1d0a4dc..6789105 100755 --- a/scripts/deployment.sh +++ b/scripts/deployment.sh @@ -40,7 +40,7 @@ echo "Proceeding as user $(whoami)" # Make the necessary folders for the airflow artefacts and copy the corresponging content mkdir -p ./dags ./logs ./plugins ./config ./templates 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 config/* $AIRFLOW_DIR/config/ cp -r templates/* $AIRFLOW_DIR/templates -- GitLab