Allow steamcmd home directory to be overridden

This commit is contained in:
Ben Peddell 2019-02-22 19:18:38 +10:00
parent d2719fb452
commit 1911a67c0e
2 changed files with 5 additions and 1 deletions

View File

@ -559,7 +559,10 @@ function doDownloadSteamCMD(){
# SteamCMD helper function
#
function runSteamCMD(){
"$steamcmdroot/$steamcmdexec" +@NoPromptForPassword 1 ${steamcmd_cmds_prelogin} +login ${steamlogin:-anonymous} ${steamcmd_cmds_postlogin} "$@" +quit
if [[ -z "${steamcmdhome}" || ! -d "${steamcmdhome}" ]]; then
steamcmdhome="${HOME}"
fi
HOME="${steamcmdhome}" "$steamcmdroot/$steamcmdexec" +@NoPromptForPassword 1 ${steamcmd_cmds_prelogin} +login ${steamlogin:-anonymous} ${steamcmd_cmds_postlogin} "$@" +quit
}
function runSteamCMDspinner(){

View File

@ -10,6 +10,7 @@ steamcmd_user="steam" # name of th
steamcmd_appinfocache="/home/steam/Steam/appcache/appinfo.vdf" # cache of the appinfo command
steamcmd_workshoplog="/home/steam/Steam/logs/workshop_log.txt" # Steam workshop log
#steamlogin="anonymous" # Uncomment this to specify steam login instead of using anonymous login
#steamcmdhome=/home/steam # Uncomment this to override steamcmd home directory
# config environment
arkserverexec="ShooterGame/Binaries/Linux/ShooterGameServer" # name of ARK server executable