Commit 72ab6ffe authored by 贾浩@五瓣科技's avatar 贾浩@五瓣科技

update: waiting for peer-id

parent 20f4b459
...@@ -357,6 +357,15 @@ echo "sleep 10" >> $startfile ...@@ -357,6 +357,15 @@ echo "sleep 10" >> $startfile
fi fi
echo "docker compose -f "$composefile" up -d" >> $startfile echo "docker compose -f "$composefile" up -d" >> $startfile
# while [ ! -e "$file_path" ]; do
# echo "文件不存在,等待中..."
# sleep 1 # 可以调整等待的时间间隔,单位为秒
#done
echo "while [ ! -e $datadir/net/$i/peer-id ];do" >> $startfile
echo " echo \"waiting for $i peer-id\"">> $startfile
echo " sleep 1" >> $startfile
echo "done" >> $startfile
echo "ip=\$(cat $datadir/net/$i/config.yaml | grep "p2p-host-ip"| grep -o '\".*\"' | sed 's/[\"\"]//g') " >> $startfile echo "ip=\$(cat $datadir/net/$i/config.yaml | grep "p2p-host-ip"| grep -o '\".*\"' | sed 's/[\"\"]//g') " >> $startfile
#echo "echo \$ip" >> $startfile #echo "echo \$ip" >> $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