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