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
|
|
|
|
2019-12-22 20:22:08 +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
|
|
|
|
2019-12-22 20:22:08 +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
|
|
|
|
|
|
2020-01-07 03:06:23 +00:00
|
|
|
/tmp/tribes2/tn_heartbeat & taskset -c 0 ./tribes2d-lan-console.dynamic 28000 -nologin -dedicated -mod Classic
|