mise à jour compose

This commit is contained in:
2025-10-22 21:27:41 +02:00
parent 9892de2002
commit 211ec56fb6
4 changed files with 41 additions and 4 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 commerce --collection "$collection" --file "$file" --jsonArray
done