Commit 6d8af40d authored by Your Name's avatar Your Name

fix mainnet script

parent 4b5b4852
......@@ -72,9 +72,12 @@ stopfile="stop-$i.sh"
echo "#!/bin/bash" > $startfile
echo "set -e" >> $startfile
if [ $i -eq 1 ]; then
echo "cd ../mainchain" >> $startfile
echo "./scripts/run-testnet.sh" >> $startfile
echo "cd ../host" >> $startfile
fi
echo "docker compose -f "$composefile" up -d" >> $startfile
chmod +x $startfile
......@@ -82,9 +85,12 @@ chmod +x $startfile
echo "#!/bin/bash" > $stopfile
echo "set -e" >> $stopfile
if [ $i -eq 1 ]; then
echo "cd ../mainchain" >> $stopfile
echo "./scripts/stop-testnet.sh || true" >> $stopfile
echo "cd ../host" >> $stopfile
fi
echo "docker compose -f "$composefile" down" >> $stopfile
chmod +x $stopfile
......
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