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.

23 lines
421 B

  1. #
  2. i="${1:-1}"
  3. top=$(git rev-parse --show-toplevel)
  4. export SITE=$top
  5. export PATH=$top/bin:$PATH
  6. port=$(expr 8089 + 2 \* $i )
  7. echo "node$i: port=$port"
  8. sed -e "s/port: .*/port: $port/" config0.yml > config$i.yml
  9. rm config.yml
  10. ln -s config$i.yml config.yml
  11. gpg --decrypt local.key.asc | git-crypt unlock -
  12. cp -p secrets/keys0.yml secrets/keys.yml
  13. echo "your name ?"
  14. read name
  15. perl -S setidentity.pl "$name (node$i)"