diff --git a/functions/fn_serverconfig b/functions/fn_serverconfig index 83ed53f16..58199ee9c 100644 --- a/functions/fn_serverconfig +++ b/functions/fn_serverconfig @@ -129,9 +129,9 @@ sed -i 's/AdminPassword=/AdminPassword=admin/g' "${systemdir}/${ini}" sleep 1 echo "enabling WebAdmin" sed -i 's/bEnabled=False/bEnabled=True/g' "${systemdir}/${ini}" -elif [ "${gamename}" == "Unreal Tournament 2004" ]; then -sleep 1 -echo "setting WebAdmin port to 8075." +if [ "${gamename}" == "Unreal Tournament 2004" ]; then + sleep 1 + echo "setting WebAdmin port to 8075." sed -i 's/ListenPort=80/ListenPort=8075/g' "${systemdir}/${ini}" fi sleep 1