You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
357 B

  1. #
  2. i=1
  3. while [ -e "node$i" ]; do
  4. i=$(expr $i + 1)
  5. done
  6. echo create node$i
  7. #git clone --recursive git@git.toptal.com:screening/Michel-Combes node$i
  8. port=$(expr 8089 + 2 \* $i )
  9. echo "node$i: port=$port"
  10. sed -e "s/port: .*/port: $port/" $node$i/config0.yml > $node$i/config$i.yml
  11. cd node$i
  12. gpg --decrypt local.key.asc | git-crypt unlock -
  13. exit $?;
  14. true;