From f306ab629ac6f5c45a7074e185532e374188f736 Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Mon, 18 Nov 2013 00:20:09 +0000 Subject: [PATCH] Fixed default config file not executing installer now creates server.cfg and server.cfg points to the default config file. --- CounterStrike/csserver | 5 ++++- CounterStrikeGlobalOffensive/csgoserver | 5 ++++- CounterStrikeSource/cssserver | 7 +++++-- DayOfDefeatSource/dodsserver | 7 +++++-- HalfLife2Deathmatch/hl2dmserver | 5 ++++- Left4Dead2/l4d2server | 5 ++++- TeamFortress2/tf2server | 5 ++++- 7 files changed, 30 insertions(+), 9 deletions(-) diff --git a/CounterStrike/csserver b/CounterStrike/csserver index 7192ce1dd..9a514e7a8 100644 --- a/CounterStrike/csserver +++ b/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 diff --git a/CounterStrikeGlobalOffensive/csgoserver b/CounterStrikeGlobalOffensive/csgoserver index 6977068d1..cfd35ad2f 100644 --- a/CounterStrikeGlobalOffensive/csgoserver +++ b/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} { diff --git a/CounterStrikeSource/cssserver b/CounterStrikeSource/cssserver index 40e14717d..c48c14581 100644 --- a/CounterStrikeSource/cssserver +++ b/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} { diff --git a/DayOfDefeatSource/dodsserver b/DayOfDefeatSource/dodsserver index c4fa89c3c..b5f71ffd8 100644 --- a/DayOfDefeatSource/dodsserver +++ b/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} { diff --git a/HalfLife2Deathmatch/hl2dmserver b/HalfLife2Deathmatch/hl2dmserver index 00dfca966..0578f6f5b 100644 --- a/HalfLife2Deathmatch/hl2dmserver +++ b/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} { diff --git a/Left4Dead2/l4d2server b/Left4Dead2/l4d2server index b7fb43c89..5b40fa567 100644 --- a/Left4Dead2/l4d2server +++ b/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} { diff --git a/TeamFortress2/tf2server b/TeamFortress2/tf2server index 3b4336d49..a7281eaf7 100644 --- a/TeamFortress2/tf2server +++ b/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} {