From d8a31718d98b3af89dc159cb16d8a3cc3acb344e Mon Sep 17 00:00:00 2001 From: Alex VanTol Date: Fri, 27 Oct 2023 15:40:01 -0500 Subject: [PATCH] fix(ai): clear folder before syncing --- gen3/bin/kube-setup-gen3-discovery-ai.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gen3/bin/kube-setup-gen3-discovery-ai.sh b/gen3/bin/kube-setup-gen3-discovery-ai.sh index 3f1ebc5c5..c8338afbc 100644 --- a/gen3/bin/kube-setup-gen3-discovery-ai.sh +++ b/gen3/bin/kube-setup-gen3-discovery-ai.sh @@ -141,7 +141,7 @@ gen3_log_info "Setup complete, syncing configuration to bucket" if [ -d "$(dirname $(g3k_manifest_path))/gen3-discovery-ai/knowledge/chromadb" ]; then bucketName="$( (gen3 secrets decode 'gen3-discovery-ai-g3auto' 'storage_config.json' || echo ERROR) | jq -r .bucket)" || exit 1 - aws s3 sync "$(dirname $(g3k_manifest_path))/gen3-discovery-ai/knowledge/chromadb" "s3://$bucketName/chromadb" + aws s3 sync "$(dirname $(g3k_manifest_path))/gen3-discovery-ai/knowledge/chromadb" "s3://$bucketName/chromadb" --delete fi gen3 roll gen3-discovery-ai