Skip to content

Commit

Permalink
Add address to qtv.cfg (#36)
Browse files Browse the repository at this point in the history
  • Loading branch information
liback committed Jul 4, 2019
1 parent 5bc33b8 commit 111c529
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion scripts/start_servers.sh
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ installdir=$(cat ~/.nquakesv/install_dir)
generate_server_config() {
inputfile=$1
outputfile=${installdir}/ktx/pwd.cfg

[ ! -f ${outputfile} ] && {
echo "rcon_password \"${SV_RCON}\"" > ${inputfile}
echo "qtv_password \"\"" >> ${inputfile}
Expand All @@ -27,6 +27,8 @@ generate_qtv_config() {
echo "mvdport ${port}" >> ${outputfile}

ip=$(cat ~/.nquakesv/ip)
echo "address ${ip}:${port}" >> ${outputfile}

for f in ~/.nquakesv/ports/*; do
port=$(basename ${f})
echo "qtv ${ip}:${port}" >> ${outputfile}
Expand Down

0 comments on commit 111c529

Please sign in to comment.