generated from oci/template
push headless config
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 5m30s
All checks were successful
Build Docker Image on Commit / build-and-publish (push) Successful in 5m30s
This commit is contained in:
parent
2c60c679ac
commit
6531e9422a
10 changed files with 363 additions and 1 deletions
26
scripts/01_install.sh
Normal file
26
scripts/01_install.sh
Normal file
|
@ -0,0 +1,26 @@
|
|||
#!/bin/bash
|
||||
cd /data/home || exit
|
||||
if [ "$DISABLE_STEAMCMD" != "true" ]; then
|
||||
echo "Running SteamCMD"
|
||||
if [ ! -f "/data/steamcmd/steamcmd.sh" ]; then
|
||||
cd /data/steamcmd || exit
|
||||
curl -sqL "https://steamcdn-a.akamaihd.net/client/installer/steamcmd_linux.tar.gz" | tar zxvf -
|
||||
fi
|
||||
# if steam beta is empty, or matchs "beta_access_key" we don't need to dwonload the beta
|
||||
if [ -z "$STEAM_BETA" ] || [ "$STEAM_BETA" == "beta_access_key" ]; then
|
||||
echo "Downloading Resonite"
|
||||
/data/steamcmd/steamcmd.sh +login anonymous +force_install_dir /data/resonite +app_update 2519830 +quit
|
||||
else
|
||||
echo "Downloading Resonite Headless"
|
||||
/data/steamcmd/steamcmd.sh +login ${STEAM_USER} ${STEAM_PASS} ${STEAM_AUTH} +force_install_dir /data/resonite +app_update 2519830 -beta headless -betapassword ${STEAM_BETA} validate +quit
|
||||
fi
|
||||
fi
|
||||
|
||||
# if crystite is enabled, we don't need to check for resonite
|
||||
if [ "$USE_CRYSTITE" != "true" ]; then
|
||||
if [ ! -f "/data/resonite/Headless/Resonite.exe" ]; then
|
||||
echo "Headless/Resonite.exe not found!"
|
||||
echo "Forcing use of Crystite"
|
||||
USE_CRYSTITE="true"
|
||||
fi
|
||||
fi
|
Loading…
Add table
Add a link
Reference in a new issue