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.
19 lines
374 B
19 lines
374 B
#
|
|
|
|
i=1
|
|
while [ -e "node$i" ]; do
|
|
i=$(expr $i + 1)
|
|
done
|
|
echo create node$i
|
|
#git clone --recursive git@git.toptal.com:screening/Michel-Combes node$i
|
|
port=$(expr 8089 + 2 \* $i )
|
|
echo "node$i: port=$port"
|
|
rm node$i/config.yml
|
|
sed -e "s/port: .*/port: $port/" node$i/config0.yml > node$i/config.yml
|
|
|
|
cd node$i
|
|
gpg --decrypt local.key.asc | git-crypt unlock -
|
|
|
|
exit $?;
|
|
|
|
true;
|