xonotic/server/server_linux.sh
root f346657d65 Changed lines 4 and 5 of server_linux.sh to the correct file names.
executable="xonotic-linux64-dedicated" ;;
executable="xonotic-linux32-dedicated" ;;
This resolves ticket #478
2011-06-03 16:04:40 -05:00

24 lines
658 B
Bash
Executable File

#!/bin/sh
case "$(uname -m)" in
x86_64) executable="xonotic-linux64-dedicated" ;;
*) executable="xonotic-linux32-dedicated" ;;
esac
cd "`dirname "${0}"`"
if ! [ -x "$executable" ]; then
if [ -x "../$executable" ] && { [ -f ~/.xonotic/data/server.cfg ] || [ -f ../data/server.cfg ]; }; then
cd ..
else
echo "This script is not properly set up yet."
echo "Please refer to the instructions in readme.txt."
echo "In short:"
echo "- copy server.cfg to the data directory and adjust its settings"
echo "- move this file to the main directory of your Xonotic installation"
exit 1
fi
fi
exec ./${executable} +serverconfig server.cfg "${@}"