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 |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 010813 |
|||
# Version: 180813 |
|||
|
|||
#### Variables #### |
|||
|
|||
# Notification Email |
|||
# (on|off) |
|||
emailnotification="off" |
|||
email="[email protected]" |
|||
|
|||
# Steam login |
|||
steamuser="username" |
|||
steampass="password" |
|||
@ -14,11 +19,6 @@ steampass="password" |
|||
# Steam |
|||
appid="215360" |
|||
|
|||
# Notification Email |
|||
# (on|off) |
|||
emailnotification="off" |
|||
email="[email protected]" |
|||
|
|||
# Directorys |
|||
rootdir="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )" |
|||
selfname="$0" |
|||
@ -438,7 +438,6 @@ echo "Installing ${gamename} Server" |
|||
echo "=================================" |
|||
cd ${rootdir}/steamcmd |
|||
mkdir -v ${filesdir} |
|||
mkdir -v ${logdir} |
|||
touch install.txt |
|||
chmod 0600 install.txt |
|||
echo "login ${steamuser} ${steampass}" > install.txt |
|||
@ -460,34 +459,34 @@ echo "=================================" |
|||
echo "" |
|||
echo "Configuring ${gamename} Server" |
|||
echo "=================================" |
|||
sleep 1 |
|||
echo "Copying ${systemdir}/default.ini to ${systemdir}/${ini}" |
|||
cp ${systemdir}/Default.ini ${systemdir}/${ini} |
|||
sleep 1 |
|||
echo "" |
|||
echo "Applying WebAdmin CharSet fix!" |
|||
echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
|||
echo "Creating log directory" |
|||
mkdir -v ${logdir} |
|||
sleep 1 |
|||
echo "" |
|||
echo "Applying WebAdmin ROOst.css fix!" |
|||
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 |
|||
echo "" |
|||
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/AdminPassword=/AdminPassword=kfpass/g' ${systemdir}/${ini} |
|||
sleep 1 |
|||
echo "" |
|||
echo "Enabling WebAdmin" |
|||
sed -i 's/bEnabled=False/bEnabled=True/g' ${systemdir}/${ini} |
|||
mkdir ${logdir} |
|||
cd ${rootdir} |
|||
sleep 1 |
|||
echo "" |
|||
cd ${rootdir} |
|||
echo "Default Settings" |
|||
echo "==============================" |
|||
sleep 1 |
|||
echo "WebAdmin Details:" |
|||
echo "Url: http://localhost:8075" |
|||
echo "Username: admin" |
|||
|
Loading…
Reference in new issue