Browse Source

install appid

pull/3002/head
Daniel Gibbs 5 years ago
parent
commit
4d0b418195
  1. 8
      lgsm/functions/install_server_files.sh
  2. 2
      lgsm/functions/update_jediknight2.sh

8
lgsm/functions/install_server_files.sh

@ -111,8 +111,8 @@ fn_install_server_files_steamcmd(){
else else
${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" +quit ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" +quit
fi fi
elif [ "${shortname}" == "ac" ]; then elif [ "${shortname}" == "ac" ]||[ "${shortname}" == "jk2" ]; then
${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" +quit ${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" validate +quit
# All other servers. # All other servers.
else else
if [ -n "${branch}" ]; then if [ -n "${branch}" ]; then
@ -132,8 +132,8 @@ fn_install_server_files_steamcmd(){
${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" validate +quit ${unbuffer} ${steamcmdcommand} +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_set_config 90 mod "${appidmod}" +app_update "${appid}" validate +quit
fi fi
local exitcode=$? local exitcode=$?
elif [ "${shortname}" == "ac" ]||[ "${gamename}" == "Jedi Knight II: Jedi Outcast" ]; then elif [ "${shortname}" == "ac" ]||[ "${shortname}" == "jk2" ]; then
${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" +quit ${unbuffer} ${steamcmdcommand} +@sSteamCmdForcePlatformType windows +login "${steamuser}" "${steampass}" +force_install_dir "${serverfiles}" +app_update "${appid}" validate +quit
local exitcode=$? local exitcode=$?
# All other servers. # All other servers.
else else

2
lgsm/functions/update_jediknight2.sh

@ -43,7 +43,7 @@ fn_update_jk2_localbuild(){
fn_update_jk2_remotebuild(){ fn_update_jk2_remotebuild(){
# Gets remote build info. # Gets remote build info.
remotebuild=$(curl -s "https://api.github.com/repos/mvdevs/jk2mv/releases/latest"| grep dedicated.zip | tail -1 | awk -F"/" '{ print $8 }') remotebuild=$(curl -s "https://api.github.com/repos/mvdevs/jk2mv/releases/latest" | grep dedicated.zip | tail -1 | awk -F"/" '{ print $8 }')
if [ "${installer}" != "1" ]; then if [ "${installer}" != "1" ]; then
fn_print_dots "Checking for update: ${remotelocation}: checking remote build" fn_print_dots "Checking for update: ${remotelocation}: checking remote build"
# Checks if remotebuild variable has been set. # Checks if remotebuild variable has been set.

Loading…
Cancel
Save