11 lines
443 B
Bash
11 lines
443 B
Bash
#! /bin/bash
|
|
RR_DOTFILES=/home/ringracers/.ringracers
|
|
SERVER_DIR=/home/ringracers/server
|
|
|
|
# Create new config from template and add the nginx server
|
|
[[ -d $RR_DOTFILES ]] || mkdir $RR_DOTFILES
|
|
cp $SERVER_DIR/ringserv-template.cfg $RR_DOTFILES/ringserv.cfg
|
|
|
|
# Load addons and start the game
|
|
find $RINGRACERSWADDIR/addons \( -name "*.pk3" -o -name "*.wad" -o -name "*.zip" \) \
|
|
| xargs $SERVER_DIR/ringracers_${RR_VERSION} -dedicated -file |