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

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