mirror of
https://github.com/eliasstepanik/ark-ac-server-tools.git
synced 2026-01-12 10:58:28 +00:00
Allow steamcmd home directory to be overridden
This commit is contained in:
parent
d2719fb452
commit
1911a67c0e
@ -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(){
|
||||
|
||||
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user