Commit 28b94931 authored by Your Name's avatar Your Name

fix host.sh param

parent 77b4d612
......@@ -321,6 +321,21 @@ echo "sleep 10" >> $startfile
fi
echo "docker compose -f "$composefile" up -d" >> $startfile
echo "ip=\$(cat $datadir/net/$i/config.yaml | grep "p2p-host-ip"| grep -o '\".*\"' | sed 's/[\"\"]//g') " >> $startfile
#echo "echo \$ip" >> $startfile
echo "peerid=\$(cat $datadir/net/$i/peer-id)" >> $startfile
#echo "echo \$peerid" >> $startfile
echo "sentryIp=\$(cat $datadir/sentry/app.json | grep -oE '[0-9]+\.[0-9]+\.[0-9]+\.[0-9]+')" >> $startfile
echo "echo ./host.sh /dir \$sentryIp /ip4/\$ip/tcp/30333/p2p/\$peerid" >> $startfile
chmod +x $startfile
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment