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
430 B

#
i=1
while [ -e "node$i" ]; do
i=$(expr $i + 1)
done
echo create node$i
if [ -d ../lib ]; then
git clone --recursive ../.git node$i
else
git clone --recursive git@git.toptal.com:screening/Michel-Combes node$i
fi
cd node$i
gpg --decrypt local.key.asc | git-crypt unlock -
port=$(expr 8089 + 2 \* $i )
echo "node$i: port=$port"
rm config.yml
sed -e "s/port: .*/port: $port/" templ/config.yml > config.yml
exit $?;
true;