summaryrefslogtreecommitdiff
path: root/setup-other-node.sh
blob: c4fd3a4d9910f40bbbd4e2c503726940e48eb7ca (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#!/bin/bash

set -euo pipefail

if ! pgrep -f ssh-agent >/dev/null; then
	echo "Start ssh-agent first:"
	echo 'eval $(ssh-agent) && rad auth --alias liw-other'
	exit 1
fi

rad node start -- --listen 0.0.0.0:8776

git init liw-test2
cd liw-test2
echo foo >foo
git add foo
git commit -m foo
rad init --name=liw-test2 \
	--no-confirm \
	--description=test \
	--public \
	--scope=all \
	--default-branch=main \
	--no-confirm \
	.

rad .