Skip to content

Commit

Permalink
Change default GameStyle and random password length
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkaergaard committed Sep 29, 2018
1 parent 62cc2df commit 6b1a0fa
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions config/start.sh
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
#!/usr/bin/env sh

sed -i \
-e "s/#GAME_STYLE#/${GAME_STYLE:-"3"}/g" \
-e "s/#GAME_STYLE#/${GAME_STYLE:-"0"}/g" \
-e "s/#MAX_PLAYERS#/${MAX_PLAYERS:-"32"}/g" \
-e "s/#GAME_PASSWORD#/${GAME_PASSWORD:-""}/g" \
-e "s/#ADMIN_PASSWORD#/${ADMIN_PASSWORD:-"$(< /dev/urandom tr -dc A-Za-z0-9 | head -c8; echo)"}/g" \
-e "s/#ADMIN_PASSWORD#/${ADMIN_PASSWORD:-"$(< /dev/urandom tr -dc A-Za-z0-9 | head -c32; echo)"}/g" \
-e "s/#SERVER_NAME#/${SERVER_NAME:-"Just another FFA"}/g" \
-e "s/#BALANCE_TEAMS#/${BALANCE_TEAMS:-"1"}/g" soldat.ini

./soldatserver -p 23073 -l ${MAX_PLAYERS:-"32"}
./soldatserver -p 23073 -l ${MAX_PLAYERS:-"32"}

0 comments on commit 6b1a0fa

Please sign in to comment.