This commit is contained in:
2025-10-06 22:08:23 +02:00
parent e04e65f665
commit 51563e2dcd
7 changed files with 371 additions and 9 deletions

View File

@@ -0,0 +1,8 @@
#!/bin/bash
set -e
for file in /initdb.d/commandes/*.json; do
collection=$(basename "$file" .json)
echo "Importing $collection..."
mongoimport --db mydb --collection "$collection" --file "$file" --jsonArray
done