Browse Source

Added validate to fn_check_steamcmd

pull/575/head
Daniel Gibbs 9 years ago
parent
commit
717c7b01e6
  1. 2
      functions/fn_check_steamcmd
  2. 10
      functions/fn_validate

2
functions/fn_check_steamcmd

@ -9,7 +9,7 @@ lgsm_version="061115"
if [ "${gamename}" == "Unreal Tournament 99" ]||[ "${gamename}" == "Unreal Tournament 2004" ]; then
: # These servers do not require SteamCMD. Check is skipped.
elif [ "${modulename}" == "Starting" ]||[ "${modulename}" == "Update" ]; then
elif [ "${modulename}" == "Starting" ]||[ "${modulename}" == "Update" ]||[ "${modulename}" == "Validate" ]; then
# Checks if SteamCMD exists when starting or updating a server.
# Re-installs if missing.
steamcmddir="${rootdir}/steamcmd"

10
functions/fn_validate

@ -2,13 +2,15 @@
# LGSM fn_validate function
# Author: Daniel Gibbs
# Website: http://gameservermanagers.com
lgsm_version="061115"
lgsm_version="201215"
# Description: Runs a server validation.
local modulename="Validate"
fn_validation(){
fn_check_steamcmd
fn_check_steamuser
fn_printwarn "Validating may overwrite some customised files."
sleep 1
echo -en "\n"
@ -20,10 +22,8 @@ sleep 1
fn_printok "Checking server files"
fn_scriptlog "Checking server files"
sleep 1
cd "${rootdir}"
cd "steamcmd"
fn_check_steamcmd
fn_check_steamuser
cd "${rootdir}/steamcmd"
if [ $(command -v unbuffer) ]; then
unbuffer=unbuffer

Loading…
Cancel
Save