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