Browse Source
Merge branch 'develop' into fix/bmdm-dep
pull/3138/head
Daniel Gibbs
5 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
3 additions and
8 deletions
-
lgsm/functions/command_stop.sh
-
lgsm/functions/update_steamcmd.sh
|
|
@ -43,7 +43,7 @@ fn_stop_graceful_cmd(){ |
|
|
|
fn_print_dots "Graceful: sending \"${1}\"" |
|
|
|
fn_script_log_info "Graceful: sending \"${1}\"" |
|
|
|
# Sends specific stop command. |
|
|
|
tmux send -t "${sessionname}" "${1}" ENTER > /dev/null 2>&1 |
|
|
|
tmux send -t "${sessionname}" ENTER "${1}" ENTER > /dev/null 2>&1 |
|
|
|
# Waits up to ${seconds} seconds giving the server time to shutdown gracefully. |
|
|
|
for ((seconds=1; seconds<=${2}; seconds++)); do |
|
|
|
check_status.sh |
|
|
|
|
|
@ -40,13 +40,8 @@ fn_update_steamcmd_remotebuild(){ |
|
|
|
find "${HOME}" -type f -name "appinfo.vdf" -exec rm -f {} \; |
|
|
|
fi |
|
|
|
|
|
|
|
if [ -n "${branch}" ]&&[ -n "${betapassword}" ]; then |
|
|
|
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" -beta "${branch}" -betapassword "${betapassword}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]') |
|
|
|
elif [ -n "${branch}" ]&&[ "${branch}" != "public" ]; then |
|
|
|
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" -beta "${branch}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]') |
|
|
|
else |
|
|
|
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed '1,/branches/d' | sed "1,/${branch}/d" | grep -m 1 buildid | tr -cd '[:digit:]') |
|
|
|
fi |
|
|
|
# password for branch not needed to check the buildid |
|
|
|
remotebuild=$(${steamcmdcommand} +login "${steamuser}" "${steampass}" +app_info_update 1 +app_info_print "${appid}" +quit | sed -e '/"branches"/,/^}/!d' | sed -n "/\"${branch}\"/,/}/p" | grep -m 1 buildid | tr -cd '[:digit:]') |
|
|
|
|
|
|
|
if [ "${firstcommandname}" != "INSTALL" ]; then |
|
|
|
fn_print_dots "Checking remote build: ${remotelocation}" |
|
|
|