Browse Source

Updating install config

pull/1123/head
Daniel Gibbs 9 years ago
parent
commit
cd67c97a18
  1. 652
      lgsm/functions/install_config.sh

652
lgsm/functions/install_config.sh

@ -8,15 +8,19 @@ local commandname="INSTALL"
local commandaction="Install" local commandaction="Install"
local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))" local function_selfname="$(basename $(readlink -f "${BASH_SOURCE[0]}"))"
fn_defaultconfig(){ fn_fetch_default_config(){
echo "creating ${servercfg} config file." mkdir -pv "${lgsmdir}/default-configs"
fn_script_log_info "creating ${servercfg} config file." githuburl="https://github.com/GameServerManagers/Game-Server-Configs/master"
cp -v "${servercfgdefault}" "${servercfgfullpath}"
sleep 1 for config in "${array_configs[@]}"
do
fileurl="https://raw.githubusercontent.com/GameServerManagers/Game-Server-Configs/master/${gamedirname}/${config}"; filedir="${lgsmdir}/default-configs"; filename="${config}"; executecmd="noexecute" run="norun"; force="noforce"
fn_fetch_file "${fileurl}" "${filedir}" "${filename}" "${executecmd}" "${run}" "${force}" "${md5}"
done
} }
fn_userinputconfig(){ # allow user to input server name and password
# allow user to input server name and password fn_user_input_config(){
if [ -z "${autoinstall}" ]; then if [ -z "${autoinstall}" ]; then
echo "" echo ""
echo "Configuring ${gamename} Server" echo "Configuring ${gamename} Server"
@ -25,437 +29,323 @@ fn_userinputconfig(){
read -p "Enter server name: " servername read -p "Enter server name: " servername
read -p "Enter rcon password: " rconpass read -p "Enter rcon password: " rconpass
else else
servername="${servicename}" servername="LinuxGSM"
rconpass="rconpassword" rconpass="rcon$RANDOM"
fi fi
echo "changing hostname." echo "changing hostname."
fn_script_log_info "changing hostname." fn_script_log_info "changing hostname."
sed -i "s/\"<hostname>\"/\"${servername}\"/g" "${servercfgfullpath}" sed -i "s/\"<hostname>\"/\"${servername}\"/g" "${servercfgfullpath}"
sleep 1 sleep 1
echo "changing rconpassword." echo "changing rconpassword."
fn_script_log_info "changing rconpassword." fn_script_log_info "changing RCON password."
sed -i "s/\"<rconpassword>\"/\"${rconpass}\"/g" "${servercfgfullpath}" sed -i "s/\"<rconpassword>\"/\"${rconpass}\"/g" "${servercfgfullpath}"
sleep 1 sleep 1
} }
fn_arma3config(){ # Copys the default config from remote repo
fn_defaultconfig fn_default_config_remote(){
echo "creating ${networkcfg} config file." for config in "${array_configs[@]}"
fn_script_log_info "creating ${networkcfg} config file." do
cp -v "${networkcfgdefault}" "${networkcfgfullpath}" echo "copying ${servercfg} config file."
sleep 1 fn_script_log_info "copying ${servercfg} config file."
echo "" cp -v "${lgsmdir}/default-configs/${config}" "${servercfgfullpath}"
} done
fn_goldsourceconfig(){
fn_defaultconfig
# server.cfg redirects to ${servercfg} for added security
echo "creating server.cfg."
fn_script_log_info "creating server.cfg."
touch "server.cfg"
sleep 1
echo "creating redirect."
fn_script_log_info "creating redirect."
echo "server.cfg > ${servercfg}."
echo "exec ${servercfg}" > "server.cfg"
sleep 1
# creating other files required
echo "creating listip.cfg."
fn_script_log_info "creating listip.cfg."
touch "${systemdir}/listip.cfg"
sleep 1
echo "creating banned.cfg."
fn_script_log_info "creating banned.cfg."
touch "${systemdir}/banned.cfg"
sleep 1
fn_userinputconfig
echo ""
}
fn_serious3config(){
fn_defaultconfig
echo ""
echo "To edit ${gamename} server config use SS3 Server GUI 3 tool"
echo "http://mrag.nl/sgui3/"
fn_script_log_info "To edit ${gamename} server config use SS3 Server GUI 3 tool"
fn_script_log_info "http://mrag.nl/sgui3/"
sleep 1
echo ""
}
fn_sourceconfig(){
fn_defaultconfig
# server.cfg redirects to ${servercfg} for added security
echo "creating server.cfg."
fn_script_log_info "creating server.cfg."
touch "server.cfg"
sleep 1
echo "creating redirect."
fn_script_log_info "creating redirect."
echo "server.cfg > ${servercfg}."
echo "exec ${servercfg}" > "server.cfg"
sleep 1
fn_userinputconfig
echo ""
}
fn_teeworldsconfig(){
fn_defaultconfig
echo "adding logfile location to config."
fn_script_log_info "adding logfile location to config."
sed -i "s@\"<logfile>\"@\"${gamelog}\"@g" "${servercfgfullpath}"
sleep 1
echo "removing password holder."
fn_script_log_info "removing password holder."
sed -i "s/<password>//" "${servercfgfullpath}"
sleep 1
fn_userinputconfig
echo ""
}
fn_ut99config(){
echo "creating ${servercfg} config file."
fn_script_log_info "creating ${servercfg} config file."
echo "${servercfgdefault} > ${servercfgfullpath}"
tr -d '\r' < "${servercfgdefault}" > "${servercfgfullpath}"
sleep 1
echo ""
echo "Configuring ${gamename} Server"
echo "================================="
sleep 1
echo "enabling WebAdmin."
fn_script_log_info "enabling WebAdmin."
sed -i 's/bEnabled=False/bEnabled=True/g' "${servercfgfullpath}"
sleep 1
echo "setting WebAdmin port to 8076."
fn_script_log_info "setting WebAdmin port to 8076."
sed -i '467i\ListenPort=8076' "${servercfgfullpath}"
sleep 1
echo ""
}
fn_unreal2config(){
fn_defaultconfig
echo ""
echo "Configuring ${gamename} Server"
echo "================================="
sleep 1
echo "setting WebAdmin username and password."
fn_script_log_info "setting WebAdmin username and password."
sed -i 's/AdminName=/AdminName=admin/g' "${servercfgfullpath}"
sed -i 's/AdminPassword=/AdminPassword=admin/g' "${servercfgfullpath}"
sleep 1 sleep 1
echo "enabling WebAdmin."
fn_script_log_info "enabling WebAdmin."
sed -i 's/bEnabled=False/bEnabled=True/g' "${servercfgfullpath}"
if [ "${gamename}" == "Unreal Tournament 2004" ]; then
sleep 1
echo "setting WebAdmin port to 8075."
fn_script_log_info "setting WebAdmin port to 8075."
sed -i 's/ListenPort=80/ListenPort=8075/g' "${servercfgfullpath}"
fi
sleep 1
echo ""
} }
fn_ut3config(){ # Copys the default config already available
echo "" fn_default_config_local(){
echo "Configuring ${gamename} Server" for config in "${array_configs[@]}"
echo "=================================" do
sleep 1 echo "copying ${servercfg} config file."
echo "setting ServerName to 'LinuxGSM UT3 Server'." fn_script_log_info "copying ${servercfg} config file."
fn_script_log_info "setting ServerName to 'LinuxGSM UT3 Server'." cp -v "${servercfgdefault}" "${servercfgfullpath}"
done
sleep 1 sleep 1
sed -i 's/ServerName=/ServerName=LinuxGSM UT3 Server/g' "${servercfgdir}/DefaultGame.ini"
echo "setting WebAdmin password to admin."
fn_script_log_info "setting WebAdmin password to admin."
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 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(){
# allow user to input server name and password
if [ -z "${autoinstall}" ]; then
echo ""
echo "Configuring ${gamename} Server"
echo "================================="
sleep 1
read -p "Enter server name: " servername
read -p "Enter rcon password: " rconpass
else
servername="${servicename}"
rconpass="rconpassword"
fi
echo "changing hostname."
fn_script_log_info "changing hostname."
sed -i "s/\"<hostname>\"/\"${servername}\"/g" "${servercfgdir}/Game.ini"
sleep 1
echo "changing rconpassword."
fn_script_log_info "changing rconpassword."
sed -i "s/\"<rconpassword>\"/\"${rconpass}\"/g" "${servercfgdir}/Engine.ini"
sleep 1
}
echo "" echo ""
if [ "${gamename}" != "Hurtworld" ]; then echo "Downloading ${gamename} Config"
echo "Creating Configs"
echo "=================================" echo "================================="
sleep 1 echo "Configs from https://github.com/GameServerManagers/Game-Server-Configs"
mkdir -pv "${servercfgdir}" sleep 2
cd "${servercfgdir}"
githuburl="https://raw.githubusercontent.com/${githubuser}/${githubrepo}/${githubbranch}"
fi
if [ "${gamename}" == "7 Days To Die" ]; then if [ "${gamename}" == "7 Days To Die" ]; then
fn_defaultconfig gamedirname="7DaysToDie"
array_configs+=( serverconfig.xml )
fn_fetch_default_config
fn_default_config_remote
elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then elif [ "${gamename}" == "ARK: Survivial Evolved" ]; then
wget -N /dev/null ${githuburl}/ARKSurvivalEvolved/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq gamedirname="ARKSurvivalEvolved"
sleep 1 array_configs+=( GameUserSettings.ini )
echo -e "downloading lgsm-default.ini...\c" fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "ARMA 3" ]; then elif [ "${gamename}" == "ARMA 3" ]; then
echo -e "downloading lgsm-default.server.cfg...\c" gamedirname="Arma3"
wget -N /dev/null ${githuburl}/Arma3/cfg/lgsm-default.server.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg network.cfg )
sleep 1 fn_fetch_default_config
echo -e "downloading lgsm-default.network.cfg...\c" fn_default_config_remote
wget -N /dev/null ${githuburl}/Arma3/cfg/lgsm-default.network.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq elif [ "${gamename}" == "Blade Symphony" ]; then
sleep 1 gamedirname="BladeSymphony"
fn_arma3config array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "BrainBread 2" ]; then elif [ "${gamename}" == "BrainBread 2" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="BrainBread2"
wget -N /dev/null ${githuburl}/BrainBread2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Black Mesa: Deathmatch" ]; then elif [ "${gamename}" == "Black Mesa: Deathmatch" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="BlackMesa"
wget -N /dev/null ${githuburl}/BlackMesa/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
elif [ "${gamename}" == "Blade Symphony" ]; then fn_user_input_config
echo -e "downloading lgsm-default.cfg...\c"
wget -N /dev/null ${githuburl}/BladeSymphony/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
sleep 1
fn_goldsourceconfig
elif [ "${gamename}" == "Codename CURE" ]; then elif [ "${gamename}" == "Codename CURE" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="CodenameCURE"
wget -N /dev/null ${githuburl}/CodenameCURE/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Counter-Strike 1.6" ]; then elif [ "${gamename}" == "Counter-Strike 1.6" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="CounterStrike"
wget -N /dev/null ${githuburl}/CounterStrike/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Counter-Strike: Condition Zero" ]; then elif [ "${gamename}" == "Counter-Strike: Condition Zero" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="CounterStrikeConditionZero"
wget -N /dev/null ${githuburl}/CounterStrikeConditionZero/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then elif [ "${gamename}" == "Counter-Strike: Global Offensive" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="CounterStrikeGlobalOffensive"
wget -N /dev/null ${githuburl}/CounterStrikeGlobalOffensive/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Counter-Strike: Source" ]; then elif [ "${gamename}" == "Counter-Strike: Source" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="CounterStrikeSource"
wget -N /dev/null ${githuburl}/CounterStrikeSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Day of Defeat" ]; then elif [ "${gamename}" == "Day of Defeat" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="DayOfDefeat"
wget -N /dev/null ${githuburl}/DayOfDefeat/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Day of Defeat: Source" ]; then elif [ "${gamename}" == "Day of Defeat: Source" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="DayOfDefeatSource"
wget -N /dev/null ${githuburl}/DayOfDefeatSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Day of Infamy" ]; then elif [ "${gamename}" == "Day of Infamy" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="DayOfInfamy"
wget -N /dev/null ${githuburl}/DayOfInfamy/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Deathmatch Classic" ]; then
gamedirname="DeathmatchClassic"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Don't Starve Together" ]; then elif [ "${gamename}" == "Don't Starve Together" ]; then
echo -e "downloading lgsm-default.ini...\c" gamedirname="DontStarveTogether"
wget -N /dev/null ${githuburl}/DontStarveTogether/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( Settings.ini )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "Double Action: Boogaloo" ]; then elif [ "${gamename}" == "Double Action: Boogaloo" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="DoubleActionBoogaloo"
wget -N /dev/null ${githuburl}/DoubleActionBoogaloo/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
elif [ "${gamename}" == "Empires Mod" ]; then fn_user_input_config
fn_defaultconfig
elif [ "${gamename}" == "Enemy Territory" ]; then
echo -e "downloading lgsm-default.cfg...\c"
wget -N /dev/null ${githuburl}/EnemyTerritory/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
sleep 1
fn_defaultconfig
fn_userinputconfig
echo ""
elif [ "${gamename}" == "Fistful of Frags" ]; then elif [ "${gamename}" == "Fistful of Frags" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="FistfulofFrags"
wget -N /dev/null ${githuburl}/FistfulOfFrags/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Garry's Mod" ]; then elif [ "${gamename}" == "Garry's Mod" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="GarrysMod"
wget -N /dev/null ${githuburl}/GarrysMod/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "GoldenEye: Source" ]; then elif [ "${gamename}" == "GoldenEye: Source" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="GoldenEyeSource"
wget -N /dev/null ${githuburl}/GoldenEyeSource/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
elif [ "${gamename}" == "Half Life 2: Deathmatch" ]; then fn_user_input_config
echo -e "downloading lgsm-default.cfg...\c"
wget -N /dev/null ${githuburl}/HalfLife2Deathmatch/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
sleep 1
fn_sourceconfig
elif [ "${gamename}" == "Half Life: Deathmatch" ]; then elif [ "${gamename}" == "Half Life: Deathmatch" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="HalfLifeDeathmatch"
wget -N /dev/null ${githuburl}/HalfLifeDeathmatch/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Half-Life Deathmatch: Source" ]; then
gamedirname="HalfLifeDeathmatchSource"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Half-Life: Opposing Force" ]; then
gamedirname="OpposingForce"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Half Life 2: Deathmatch" ]; then
gamedirname="HalfLife2Deathmatch"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Insurgency" ]; then elif [ "${gamename}" == "Insurgency" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="Insurgency"
wget -N /dev/null ${githuburl}/Insurgency/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Just Cause 2" ]; then elif [ "${gamename}" == "Just Cause 2" ]; then
fn_defaultconfig gamedirname="JustCause2"
array_configs+=( config.lua )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Killing Floor" ]; then elif [ "${gamename}" == "Killing Floor" ]; then
fn_unreal2config gamedirname="KillingFloor"
array_configs+=( Default.ini )
fn_fetch_default_config
fn_default_config_remote
elif [ "${gamename}" == "Left 4 Dead" ]; then elif [ "${gamename}" == "Left 4 Dead" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="Left4Dead"
wget -N /dev/null ${githuburl}/Left4Dead/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Left 4 Dead" ]; then
gamedirname="Left4Dead"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Left 4 Dead 2" ]; then elif [ "${gamename}" == "Left 4 Dead 2" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="Left4Dead2"
wget -N /dev/null ${githuburl}/Left4Dead2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Minecraft" ]; then elif [ "${gamename}" == "Minecraft" ]; then
echo -e "downloading lgsm-default.ini...\c" gamedirname="Minecraft"
wget -N /dev/null ${githuburl}/Minecraft/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.properties )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "No More Room in Hell" ]; then elif [ "${gamename}" == "No More Room in Hell" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="NoMoreRoominHell"
wget -N /dev/null ${githuburl}/NoMoreRoomInHell/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Mumble" ]; then
:
elif [ "${gamename}" == "Natural Selection 2" ]; then elif [ "${gamename}" == "Natural Selection 2" ]; then
echo -e "no configs required." :
sleep 1 elif [ "${gamename}" == "NS2: Combat" ]; then
echo "" :
elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then elif [ "${gamename}" == "Pirates, Vikings, and Knights II" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="PiratesVikingandKnightsII"
wget -N /dev/null ${githuburl}/PiratesVikingandKnightsII/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Project Zomboid" ]; then elif [ "${gamename}" == "Project Zomboid" ]; then
echo -e "downloading lgsm-default.ini...\c" gamedirname="ProjectZomboid"
wget -N /dev/null ${githuburl}/ProjectZomboid/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.ini )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "Quake Live" ]; then elif [ "${gamename}" == "Quake Live" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="QuakeLive"
wget -N /dev/null ${githuburl}/QuakeLive/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
fn_userinputconfig
elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then elif [ "${gamename}" == "Red Orchestra: Ostfront 41-45" ]; then
fn_unreal2config :
elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then elif [ "${gamename}" == "Ricochet" ]; then
echo -e "downloading lgsm-default.ini...\c" gamedirname="Ricochet"
wget -N /dev/null ${githuburl}/SeriousSam3BFE/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_serious3config fn_default_config_remote
fn_user_input_config
elif [ "${gamename}" == "Rust" ]; then elif [ "${gamename}" == "Rust" ]; then
echo -e "downloading server.cfg...\c" gamedirname="Rust"
wget -N /dev/null ${githuburl}/Rust/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "Sven Co-op" ]; then elif [ "${gamename}" == "Serious Sam 3: BFE" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="SeriousSam3BFE"
wget -N /dev/null ${githuburl}/SvenCoop/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.ini )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
elif [ "${gamename}" == "Starbound" ]; then elif [ "${gamename}" == "Starbound" ]; then
echo -e "downloading lgsm-default.config...\c" gamedirname="Starbound"
wget -N /dev/null ${githuburl}/Starbound/cfg/lgsm-default.config 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( starbound.config )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
fn_userinputconfig elif [ "${gamename}" == "Sven Co-op" ]; then
elif [ "${gamename}" == "TeamSpeak 3" ]; then gamedirname="SvenCoop"
echo -e "downloading lgsm-default.ini...\c" array_configs+=( server.cfg )
wget -N /dev/null ${githuburl}/TeamSpeak3/cfg/lgsm-default.ini 2>&1 | grep -F HTTP | cut -c45- | uniq fn_fetch_default_config
sleep 1 fn_default_config_remote
fn_defaultconfig
elif [ "${gamename}" == "Team Fortress 2" ]; then elif [ "${gamename}" == "Team Fortress 2" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="TeamFortress2"
wget -N /dev/null ${githuburl}/TeamFortress2/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_sourceconfig fn_default_config_remote
elif [ "${gamename}" == "Team Fortress Classic" ]; then elif [ "${gamename}" == "Team Fortress Classic" ]; then
echo -e "downloading lgsm-default.cfg...\c" gamedirname="TeamFortressClassic"
wget -N /dev/null ${githuburl}/TeamFortressClassic/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg )
sleep 1 fn_fetch_default_config
fn_goldsourceconfig fn_default_config_remote
elif [ "${gamename}" == "TeamSpeak 3" ]; then
gamedirname="TeamSpeak3"
array_configs+=( ts3server.ini )
fn_fetch_default_config
fn_default_config_remote
elif [ "${gamename}" == "Teeworlds" ]; then elif [ "${gamename}" == "Teeworlds" ]; then
echo -e "downloading ctf.cfg...\c" gamedirname="Teeworlds"
wget -N /dev/null ${githuburl}/Teeworlds/cfg/ctf.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( server.cfg ctf.cfg dm.cfg duel.cfg tdm.cfg )
echo -e "downloading dm.cfg...\c" fn_fetch_default_config
wget -N /dev/null ${githuburl}/Teeworlds/cfg/dm.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq fn_default_config_remote
echo -e "downloading duel.cfg...\c"
wget -N /dev/null ${githuburl}/Teeworlds/cfg/duel.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
echo -e "downloading tdm.cfg...\c"
wget -N /dev/null ${githuburl}/Teeworlds/cfg/tdm.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
echo -e "downloading lgsm-default.cfg...\c"
wget -N /dev/null ${githuburl}/Teeworlds/cfg/lgsm-default.cfg 2>&1 | grep -F HTTP | cut -c45- | uniq
sleep 1
fn_teeworldsconfig
elif [ "${gamename}" == "Terraria" ]; then elif [ "${gamename}" == "Terraria" ]; then
echo -e "downloading lgsm-default.txt...\c" gamedirname="Terraria"
wget -N /dev/null ${githuburl}/Terraria/cfg/lgsm-default.txt 2>&1 | grep -F HTTP | cut -c45- | uniq array_configs+=( serverconfig.txt )
sleep 1 fn_fetch_default_config
fn_defaultconfig fn_default_config_remote
elif [ "${gamename}" == "Unreal Tournament" ]; then elif [ "${gamename}" == "Unreal Tournament" ]; then
echo -e "downloading Engine.ini...\c" :
wget -N /dev/null ${githuburl}/UnrealTournament/cfg/Engine.ini 2>&1 | grep -F HTTP | cut -c45- | uniq
echo -e "downloading Game.ini...\c"
wget -N /dev/null ${githuburl}/UnrealTournament/cfg/Game.ini 2>&1 | grep -F HTTP | cut -c45- | uniq
sleep 1
fn_unrealtournament
elif [ "${gamename}" == "Unreal Tournament 3" ]; then
fn_ut3config
elif [ "${gamename}" == "Unreal Tournament 2004" ]; then elif [ "${gamename}" == "Unreal Tournament 2004" ]; then
fn_unreal2config :
elif [ "${gamename}" == "Unreal Tournament 3" ]; then
:
elif [ "${gamename}" == "Unreal Tournament 99" ]; then elif [ "${gamename}" == "Unreal Tournament 99" ]; then
fn_ut99config gamedirname="UnrealTournament99"
array_configs+=( Game.ini Engine.ini )
fn_fetch_default_config
fn_default_config_remote
elif [ "${gamename}" == "Enemy Territory" ]; then
gamedirname="WolfensteinEnemyTerritory"
array_configs+=( server.cfg )
fn_fetch_default_config
fn_default_config_remote
fi fi

Loading…
Cancel
Save