3 changed files with 95 additions and 0 deletions
@ -0,0 +1,27 @@ |
|||
#!/bin/bash |
|||
# LGSM fn_ut2k4fix function |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 011214 |
|||
|
|||
echo "Applying UT2K4 Server Fixes" |
|||
echo "=================================" |
|||
echo "Applying WebAdmin ut2003.css fix!" |
|||
echo "http://forums.tripwireinteractive.com/showpost.php?p=585435&postcount=13" |
|||
sed -i 's/none}/none;/g' "${filesdir}/Web/ServerAdmin/ut2003.css" |
|||
sed -i 's/underline}/underline;/g' "${filesdir}/Web/ServerAdmin/ut2003.css" |
|||
sleep 1 |
|||
echo "Applying WebAdmin CharSet fix!" |
|||
echo "http://forums.tripwireinteractive.com/showpost.php?p=442340&postcount=1" |
|||
sed -i 's/CharSet="iso-8859-1"/CharSet="utf-8"/g' "${systemdir}/UWeb.int" |
|||
sleep 1 |
|||
|
|||
sleep 1 |
|||
echo "Forcing server to start to get ports/server name to display correctly" |
|||
sleep 1 |
|||
cd "${rootdir}" |
|||
${selfname} start |
|||
sleep 5 |
|||
${selfname} restart |
|||
sleep 5 |
|||
${selfname} stop |
@ -0,0 +1,42 @@ |
|||
#!/bin/bash |
|||
# LGSM fn_ut2k4install function |
|||
# Author: Daniel Gibbs |
|||
# Website: http://danielgibbs.co.uk |
|||
# Version: 011214 |
|||
|
|||
echo "Installing ${gamename} Server" |
|||
echo "=================================" |
|||
sleep 1 |
|||
mkdir -pv "${filesdir}" |
|||
cd "${filesdir}" |
|||
echo "Extracting dedicatedserver3339-bonuspack.zip" |
|||
sleep 1 |
|||
unzip dedicatedserver3339-bonuspack.zip |
|||
echo "Extracting ut2004-lnxpatch3369-2.tar.bz2" |
|||
sleep 1 |
|||
tar -xvjf ut2004-lnxpatch3369-2.tar.bz2 UT2004-Patch/ --strip-components=1 |
|||
while true; do |
|||
read -p "Was the install successful? [y/N]" yn |
|||
case $yn in |
|||
[Yy]* ) break;; |
|||
[Nn]* ) fn_retryinstall;; |
|||
* ) echo "Please answer yes or no.";; |
|||
esac |
|||
done |
|||
while true; do |
|||
read -p "Remove ut2004-lnxpatch3369-2.tar.bz2? [y/N]" yn |
|||
case $yn in |
|||
[Yy]* ) rm -fv ut2004-lnxpatch3369-2.tar.bz2; break;; |
|||
[Nn]* ) break;; |
|||
* ) echo "Please answer yes or no.";; |
|||
esac |
|||
done |
|||
while true; do |
|||
read -p "Remove dedicatedserver3339-bonuspack.zip? [y/N]" yn |
|||
case $yn in |
|||
[Yy]* ) rm -fv dedicatedserver3339-bonuspack.zip; break;; |
|||
[Nn]* ) break;; |
|||
* ) echo "Please answer yes or no.";; |
|||
esac |
|||
done |
|||
echo "" |
Loading…
Reference in new issue