corrections json import
This commit is contained in:
File diff suppressed because one or more lines are too long
File diff suppressed because it is too large
Load Diff
@@ -1,8 +1,8 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
set -e
|
set -e
|
||||||
|
|
||||||
for file in /initdb.d/commandes/*.json; do
|
for file in /initdb.d/*.json; do
|
||||||
collection=$(basename "$file" .json)
|
collection=$(basename "$file" .json)
|
||||||
echo "Importing $collection..."
|
echo "Importing $collection..."
|
||||||
mongoimport --db commerce --collection "$collection" --file "$file" --jsonArray
|
mongoimport --db iut --collection "$collection" --file "$file" --jsonArray
|
||||||
done
|
done
|
||||||
|
|||||||
Reference in New Issue
Block a user