Browse Source
-Removed charset fix as it appears to not be needed anymore (I can re-add this if this is not the case. -Tidied up the installer - added serverquery.py function - ut2k4server - modified fn_syscheck - ut2k4server - moved Notification email to the top in line with other scripts - ut2k4serverpull/8/merge
2 changed files with 75 additions and 49 deletions
@ -3,10 +3,15 @@ |
|||||
# Server Management Script |
# Server Management Script |
||||
# Author: Daniel Gibbs |
# Author: Daniel Gibbs |
||||
# Website: http://danielgibbs.co.uk |
# Website: http://danielgibbs.co.uk |
||||
# Version: 010813 |
# Version: 180813 |
||||
|
|
||||
#### Variables #### |
#### Variables #### |
||||
|
|
||||
|
# Notification Email |
||||
|
# (on|off) |
||||
|
emailnotification="off" |
||||
|
email="[email protected]" |
||||
|
|
||||
# Steam login |
# Steam login |
||||
steamuser="username" |
steamuser="username" |
||||
steampass="password" |
steampass="password" |
||||
@ -14,11 +19,6 @@ steampass="password" |
|||||
# Steam |
# Steam |
||||
appid="215360" |
appid="215360" |
||||
|
|
||||
# Notification Email |
|
||||
# (on|off) |
|
||||
emailnotification="off" |
|
||||
email="[email protected]" |
|
||||
|
|
||||
# Directorys |
# Directorys |
||||
rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
||||
selfname="$0" |
selfname="$0" |
||||
@ -438,7 +438,6 @@ echo "Installing ${gamename} Server" |
|||||
echo "=================================" |
echo "=================================" |
||||
cd ${rootdir}/steamcmd |
cd ${rootdir}/steamcmd |
||||
mkdir -v ${filesdir} |
mkdir -v ${filesdir} |
||||
mkdir -v ${logdir} |
|
||||
touch install.txt |
touch install.txt |
||||
chmod 0600 install.txt |
chmod 0600 install.txt |
||||
echo "login ${steamuser} ${steampass}" > install.txt |
echo "login ${steamuser} ${steampass}" > install.txt |
||||
@ -460,34 +459,34 @@ echo "=================================" |
|||||
echo "" |
echo "" |
||||
echo "Configuring ${gamename} Server" |
echo "Configuring ${gamename} Server" |
||||
echo "=================================" |
echo "=================================" |
||||
|
sleep 1 |
||||
echo "Copying ${systemdir}/default.ini to ${systemdir}/${ini}" |
echo "Copying ${systemdir}/default.ini to ${systemdir}/${ini}" |
||||
cp ${systemdir}/Default.ini ${systemdir}/${ini} |
cp ${systemdir}/Default.ini ${systemdir}/${ini} |
||||
sleep 1 |
sleep 1 |
||||
echo "" |
echo "" |
||||
echo "Applying WebAdmin CharSet fix!" |
echo "Creating log directory" |
||||
echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
mkdir -v ${logdir} |
||||
sleep 1 |
sleep 1 |
||||
echo "" |
echo "" |
||||
echo "Applying WebAdmin ROOst.css fix!" |
echo "Applying WebAdmin ROOst.css fix!" |
||||
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
||||
|
sed -i 's/none}/none;/g' ${filesdir}/Web/ServerAdmin/ROOst.css |
||||
|
sed -i 's/underline}/underline;/g' ${filesdir}/Web/ServerAdmin/ROOst.css |
||||
sleep 1 |
sleep 1 |
||||
echo "" |
echo "" |
||||
echo "Setting WebAdmin username and password" |
echo "Setting WebAdmin username and password" |
||||
sleep 1 |
|
||||
echo "" |
|
||||
echo "Enabling Web Interface" |
|
||||
sleep 2 |
|
||||
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' ${systemdir}/UWeb.int |
|
||||
sed -i 's/none}/none;/g' ${filesdir}/Web/ServerAdmin/ROOst.css |
|
||||
sed -i 's/underline}/underline;/g' ${filesdir}/Web/ServerAdmin/ROOst.css |
|
||||
sed -i 's/AdminName=/AdminName=admin/g' ${systemdir}/${ini} |
sed -i 's/AdminName=/AdminName=admin/g' ${systemdir}/${ini} |
||||
sed -i 's/AdminPassword=/AdminPassword=kfpass/g' ${systemdir}/${ini} |
sed -i 's/AdminPassword=/AdminPassword=kfpass/g' ${systemdir}/${ini} |
||||
|
sleep 1 |
||||
|
echo "" |
||||
|
echo "Enabling WebAdmin" |
||||
sed -i 's/bEnabled=False/bEnabled=True/g' ${systemdir}/${ini} |
sed -i 's/bEnabled=False/bEnabled=True/g' ${systemdir}/${ini} |
||||
mkdir ${logdir} |
sleep 1 |
||||
cd ${rootdir} |
|
||||
echo "" |
echo "" |
||||
|
cd ${rootdir} |
||||
echo "Default Settings" |
echo "Default Settings" |
||||
echo "==============================" |
echo "==============================" |
||||
|
sleep 1 |
||||
echo "WebAdmin Details:" |
echo "WebAdmin Details:" |
||||
echo "Url: http://localhost:8075" |
echo "Url: http://localhost:8075" |
||||
echo "Username: admin" |
echo "Username: admin" |
||||
|
Loading…
Reference in new issue