docker-tribesnext-server/_scripts/start-server

24 lines
633 B
Plaintext
Raw Normal View History

2019-02-13 09:41:52 +00:00
#!/bin/bash
2020-01-02 20:10:26 +00:00
BASE_DIR=/home/gameserv/.loki/tribes2/
2019-02-13 09:41:52 +00:00
echo "Update Admin & Server Prefs..."
/tmp/tribes2/cfg-admin-prefs
echo "Finished!"
2020-01-02 20:10:26 +00:00
cd ${BASE_DIR}
2019-02-13 09:41:52 +00:00
2020-01-02 20:10:26 +00:00
echo "Generating alphabetized AutoExec script index..."
/tmp/tribes2/gen_autoexec_index "${BASE_DIR}Classic/scripts"
echo "Finished!"
2019-02-13 09:41:52 +00:00
2020-01-02 20:10:26 +00:00
echo "Removing .dso files"
find ${BASE_DIR} -name \*.dso -execdir /bin/rm {} \;
2019-11-29 21:56:30 +00:00
echo "Running the Tribes 2 server"
2020-01-02 20:10:26 +00:00
chmod +x ${BASE_DIR}tribes2d-lan.dynamic
# -- debug -- keep container running and dont launch the server
#tail -f /dev/null
/tmp/tribes2/tn_heartbeat & taskset -c 0 ./tribes2d-lan.dynamic 28000 -nologin -dedicated -mod Classic