Skip to content

Commit

Permalink
fix(ai): clear folder before syncing
Browse files Browse the repository at this point in the history
  • Loading branch information
Avantol13 committed Oct 27, 2023
1 parent 9c01535 commit d8a3171
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gen3/bin/kube-setup-gen3-discovery-ai.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit d8a3171

Please sign in to comment.