|
|
@ -176,20 +176,20 @@ fn_ut3config(){ |
|
|
|
sed -i 's/ServerName=/ServerName=LinuxGSM UT3 Server/g' "${servercfgdir}/DefaultGame.ini" |
|
|
|
echo "setting WebAdmin password." |
|
|
|
fn_script_log_info "setting WebAdmin password." |
|
|
|
sed -i 's/AdminPassword=/AdminPassword=admin/g' "${servercfgdir}/DefaultGame.ini" |
|
|
|
echo '[Engine.AccessControl]' >> "${servercfgdir}/DefaultGame.ini" |
|
|
|
echo 'AdminPassword=admin' >> "${servercfgdir}/DefaultGame.ini" |
|
|
|
sleep 1 |
|
|
|
echo "enabling WebAdmin." |
|
|
|
fn_script_log_info "enabling WebAdmin." |
|
|
|
sed -i 's/bEnabled=false/bEnabled=True/g' "${servercfgdir}/DefaultWeb.ini" |
|
|
|
if [ "${gamename}" == "Unreal Tournament 3" ]; then |
|
|
|
sleep 1 |
|
|
|
echo "setting WebAdmin port to 8075." |
|
|
|
echo "setting WebAdmin port to 8081." |
|
|
|
fn_script_log_info "setting WebAdmin port to 8081." |
|
|
|
sed -i 's/ListenPort=80/ListenPort=8081/g' "${servercfgdir}/DefaultWeb.ini" |
|
|
|
fi |
|
|
|
sleep 1 |
|
|
|
echo "" |
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
fn_unrealtournament(){ |
|
|
|