Browse Source

Bugs

Changed +servercfgfile to +exec
Moved the fn_parms() after where servercfg is define above.
pull/130/head
Summit Singh Thakur 11 years ago
parent
commit
4c30ac62ec
  1. 10
      CounterStrike/csserver

10
CounterStrike/csserver

@ -23,11 +23,6 @@ port="27015"
clientport="27005" clientport="27005"
ip="0.0.0.0" ip="0.0.0.0"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +servercfgfile ${servercfg} -maxplayers ${maxplayers}"
}
#### Advanced Variables #### #### Advanced Variables ####
# Steam # Steam
@ -53,6 +48,11 @@ defaultcfg="${servercfgdir}/server.cfg"
backupdir="backups" backupdir="backups"
steamclient="${rootdir}/steamcmd/linux32/steamclient.so" steamclient="${rootdir}/steamcmd/linux32/steamclient.so"
# https://developer.valvesoftware.com/wiki/Command_Line_Options#Command-line_parameters_2
fn_parms(){
parms="-game cstrike -strictportbind -ip ${ip} -port ${port} +clientport ${clientport} +map ${defaultmap} +exec ${servercfg} -maxplayers ${maxplayers}"
}
# Server Details # Server Details
servername=$(grep -s hostname "${servercfgfullpath}"|sed 's/hostname //g'|sed 's/"//g') servername=$(grep -s hostname "${servercfgfullpath}"|sed 's/hostname //g'|sed 's/"//g')
rcon=$(grep -s rcon_password "${servercfgfullpath}"|sed 's/rcon_password //g'|sed 's/"//g') rcon=$(grep -s rcon_password "${servercfgfullpath}"|sed 's/rcon_password //g'|sed 's/"//g')

Loading…
Cancel
Save