Browse Source

[+Albert] Initialize mongod has now a different container id

Jordi Coscolla 1 year ago
parent
commit
99d723fd3f
1 changed files with 3 additions and 3 deletions
  1. 3 3
      apps/petitions/scripts/init_cs.sh

+ 3 - 3
apps/petitions/scripts/init_cs.sh

@@ -13,13 +13,13 @@ scp ${ROOT_GIT}/apps/petitions/decode-app/data/petitions.json ec2-user@${DECIDIM
13 13
 
14 14
 ## remove petition
15 15
 
16
-ssh ec2-user@${DECIDIM_EC2} "docker exec 1f787562d4b5 mongo decode --eval 'db.petitions.remove({})'" 
16
+ssh ec2-user@${DECIDIM_EC2} "docker exec dba91c8b8cdd mongo decode --eval 'db.petitions.remove({})'" 
17 17
 
18 18
 
19 19
 ## copy json to container
20
-ssh ec2-user@${DECIDIM_EC2} "docker cp /tmp/petitions.json 1f787562d4b5:/tmp/petitions.json"
20
+ssh ec2-user@${DECIDIM_EC2} "docker cp /tmp/petitions.json dba91c8b8cdd:/tmp/petitions.json"
21 21
 
22
-ssh ec2-user@${DECIDIM_EC2} "docker exec 1f787562d4b5 mongoimport -d decode -c petitions --jsonArray --file /tmp/petitions.json"
22
+ssh ec2-user@${DECIDIM_EC2} "docker exec dba91c8b8cdd mongoimport -d decode -c petitions --jsonArray --file /tmp/petitions.json"
23 23
 
24 24
 ## Clear chainspace on node
25 25
 if [ $1 = "decode02" ]; then