Created
August 8, 2016 14:24
-
-
Save randomize/4e81f650876e04ccec9c5115eda5f522 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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 [email protected] "killall lions-launcher.sh &" | |
ssh [email protected] "killall Lionsgate-Server_linux &" | |
sleep 1 | |
echo "Uploading LionsGate server executable and data" | |
scp -r ${DIR}/../LionsgateProto_Unityproject/Build/Lionsgate-Server_linux* [email protected]:~/ | |
echo "Starting LionsGate server" | |
ssh [email protected] "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