Skip to content

Instantly share code, notes, and snippets.

@randomize
Created August 8, 2016 14:24
Show Gist options
  • Save randomize/4e81f650876e04ccec9c5115eda5f522 to your computer and use it in GitHub Desktop.
Save randomize/4e81f650876e04ccec9c5115eda5f522 to your computer and use it in GitHub Desktop.
#!/bin/bash
# vim: ft=sh
# Stop on any error
set -e
# Get scripta path
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
echo "Stopping LionsGate server"
ssh uploadbot@10.1.10.238 "killall lions-launcher.sh &"
ssh uploadbot@10.1.10.238 "killall Lionsgate-Server_linux &"
sleep 1
echo "Uploading LionsGate server executable and data"
scp -r ${DIR}/../LionsgateProto_Unityproject/Build/Lionsgate-Server_linux* uploadbot@10.1.10.238:~/
echo "Starting LionsGate server"
ssh uploadbot@10.1.10.238 "lions-launcher.sh &"
sleep 1
echo "DONE!"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment