Skip to content

Commit

Permalink
Generate default admin password from /dev/urandom
Browse files Browse the repository at this point in the history
  • Loading branch information
kdkaergaard committed Aug 25, 2018
1 parent 30edc3e commit beaddc2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion config/start.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ sed -i \
-e "s/#GAME_STYLE#/${GAME_STYLE:-"3"}/g" \
-e "s/#MAX_PLAYERS#/${MAX_PLAYERS:-"32"}/g" \
-e "s/#GAME_PASSWORD#/${GAME_PASSWORD:-""}/g" \
-e "s/#ADMIN_PASSWORD#/${ADMIN_PASSWORD:-"changeme123"}/g" \
-e "s/#ADMIN_PASSWORD#/${ADMIN_PASSWORD:-"$(< /dev/urandom tr -dc A-Za-z0-9 | head -c8; echo)"}/g" \
-e "s/#SERVER_NAME#/${SERVER_NAME:-"Just another FFA"}/g" \
-e "s/#BALANCE_TEAMS#/${BALANCE_TEAMS:-"1"}/g" soldat.ini

Expand Down

0 comments on commit beaddc2

Please sign in to comment.