#!/bin/bash # LGSM fn_validate function # Author: Daniel Gibbs # Website: http://danielgibbs.co.uk # Version: 210115 # Description: Runs a server validation. local modulename="Validate" fn_check_root fn_check_systemdir fn_printwarn "Validating may overwrite some customised files." sleep 1 echo -en "\n" echo -en "https://developer.valvesoftware.com/wiki/SteamCMD#Validate" sleep 5 echo -en "\n" fn_printdots "Checking server files" sleep 1 fn_printok "Checking server files" fn_scriptlog "Checking server files" sleep 1 cd "${rootdir}" cd "steamcmd" ./steamcmd.sh +login "${steamuser}" "${steampass}" +force_install_dir "${filesdir}" +app_update "${appid}" validate +quit|tee -a "${scriptlog}" fn_scriptlog "Checking complete"