Browse Source

Fixed default config file not executing

installer now creates server.cfg and server.cfg points to the default
config file.
pull/30/head
Daniel Gibbs 12 years ago
parent
commit
f306ab629a
  1. 5
      CounterStrike/csserver
  2. 5
      CounterStrikeGlobalOffensive/csgoserver
  3. 7
      CounterStrikeSource/cssserver
  4. 7
      DayOfDefeatSource/dodsserver
  5. 5
      HalfLife2Deathmatch/hl2dmserver
  6. 5
      Left4Dead2/l4d2server
  7. 5
      TeamFortress2/tf2server

5
CounterStrike/csserver

@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/cstrike/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/cstrike/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
touch ${filesdir}/cstrike/listip.cfg

5
CounterStrikeGlobalOffensive/csgoserver

@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/csgo/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/csgo/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

7
CounterStrikeSource/cssserver

@ -33,7 +33,7 @@ engine="source"
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0"
filesdir="${rootdir}/serverfiles"
servercfg="${filesdir}/csgo/cfg/${servicename}.cfg"
servercfg="${filesdir}/cstrike/cfg/${servicename}.cfg"
backupdir="${rootdir}/backups"
# Server Details
@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/cstrike/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/cstrike/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

7
DayOfDefeatSource/dodsserver

@ -33,7 +33,7 @@ engine="source"
rootdir="$(cd "$(dirname "${BASH_SOURCE[0]}" )" && pwd )"
selfname="$0"
filesdir="${rootdir}/serverfiles"
servercfg="${filesdir}/csgo/cfg/${servicename}.cfg"
servercfg="${filesdir}/dod/cfg/${servicename}.cfg"
backupdir="${rootdir}/backups"
servername=$(grep -s hostname ${servercfg} | sed 's/hostname //g'|sed 's/"//g')
@ -554,8 +554,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/dod/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/dod/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

5
HalfLife2Deathmatch/hl2dmserver

@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/hl2mp/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/hl2mp/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

5
Left4Dead2/l4d2server

@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/left4dead2/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/left4dead2/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

5
TeamFortress2/tf2server

@ -555,8 +555,11 @@ echo "================================="
sleep 1
echo ""
echo "Creating server.cfg"
touch ${filesdir}/tf/cfg/server.cfg
echo "exec ${servercfg}" > ${filesdir}/tf/cfg/server.cfg
sleep 1
echo "Saving as:"
echo "Creating default config file:"
sleep 0.5
echo "${servercfg}"
touch ${servercfg}
{

Loading…
Cancel
Save