Browse Source

code tidy

pull/3002/head
Daniel Gibbs 5 years ago
parent
commit
85bfa884ef
  1. 4
      lgsm/config-default/config-lgsm/jk2server/_default.cfg
  2. 2
      lgsm/functions/core_dl.sh
  3. 12
      lgsm/functions/core_getopt.sh

4
lgsm/config-default/config-lgsm/jk2server/_default.cfg

@ -124,6 +124,10 @@ stopmode="3"
querymode="2"
querytype="protocol-quake3"
## Console type
consoleverbose="yes"
consoleinteract="yes"
## SteamCMD Settings
# Server appid
appid="6030"

2
lgsm/functions/core_dl.sh

@ -67,7 +67,7 @@ fn_dl_steamcmd(){
${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" ${validate} +quit | tee -a "${lgsmlog}" "${steamcmdlog}"
fi
# Force Windows Platform type.
elif [ "${shortname}" == "ac" ]||[ "${shortname}" == "jk2" ]; then
elif [ "${shortname}" == "ac" ]||[ "${shortname}" == "jk2" ]; then
if [ -n "${branch}" ]&&[ -n "${betapassword}" ]; then
${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" -beta "${branch}" -betapassword "${betapassword}" ${validate} +quit | tee -a "${lgsmlog}" "${steamcmdlog}"
elif [ -n "${branch}" ]; then

12
lgsm/functions/core_getopt.sh

@ -62,14 +62,14 @@ currentopt+=( "${cmd_update_linuxgsm[@]}" )
# Exclude noupdate games here.
if [ "${shortname}" == "jk2" ]||[ "${engine}" != "idtech3" ];then
if [ "${engine}" != "quake" ]&&[ "${engine}" != "idtech2" ]&&[ "${engine}" != "iw2.0" ]&&[ "${engine}" != "iw3.0" ]&&[ "${shortname}" != "bf1942" ]&&[ "${shortname}" != "bfv" ]&&[ "${shortname}" != "samp" ]; then
currentopt+=( "${cmd_update[@]}" )
# force update for SteamCMD only or MTA.
if [ "${appid}" ]||[ "${shortname}" == "mta" ]; then
currentopt+=( "${cmd_force_update[@]}" )
if [ "${engine}" != "quake" ]&&[ "${engine}" != "idtech2" ]&&[ "${engine}" != "iw2.0" ]&&[ "${engine}" != "iw3.0" ]&&[ "${shortname}" != "bf1942" ]&&[ "${shortname}" != "bfv" ]&&[ "${shortname}" != "samp" ]; then
currentopt+=( "${cmd_update[@]}" )
# force update for SteamCMD only or MTA.
if [ "${appid}" ]||[ "${shortname}" == "mta" ]; then
currentopt+=( "${cmd_force_update[@]}" )
fi
fi
fi
fi
# Validate command.
if [ "${appid}" ]; then

Loading…
Cancel
Save