Skip to content

Commit

Permalink
update mcsfunc
Browse files Browse the repository at this point in the history
  • Loading branch information
inada-s committed May 2, 2020
1 parent ca2c0ae commit 2045664
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infra/mcsfunc/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ cat << 'EOF' > /home/ubuntu/launch-mcs.sh
function finish {
echo "finish"
sleep 1
# sudo /sbin/shutdown now
sudo /sbin/shutdown now
}
trap finish EXIT
Expand All @@ -73,11 +73,11 @@ export GDXSV_LOBBY_PUBLIC_ADDR=zdxsv.net:9876
export GDXSV_BATTLE_ADDR=:9877
export GDXSV_BATTLE_REGION=$(basename $(curl -s -H "Metadata-Flavor: Google" http://metadata.google.internal/computeMetadata/v1/instance/zone))
export GDXSV_BATTLE_PUBLIC_ADDR=$(curl -s https://ipinfo.io/ip):9877
$TAG_NAME/bin/gdxsv -v=3 mcs
$TAG_NAME/bin/gdxsv mcs
EOF
chmod +x /home/ubuntu/launch-mcs.sh
su ubuntu -c 'cd /home/ubuntu && nohup ./launch-mcs.sh >> gdxsv.log &'
su ubuntu -c 'cd /home/ubuntu && nohup ./launch-mcs.sh 2>&1 | logger &'
`
}

Expand Down

0 comments on commit 2045664

Please sign in to comment.