diff options
author | brodokk <brodokk@brodokk.space> | 2021-02-16 22:19:30 +0100 |
---|---|---|
committer | brodokk <brodokk@brodokk.space> | 2021-02-18 00:16:31 +0100 |
commit | 11f35716b4482493f264b5f06a88c41345aff438 (patch) | |
tree | c7b32273bae228572bfb4a53ab529a88e9f71e80 /entrypoint.sh | |
download | neosvr_docker-11f35716b4482493f264b5f06a88c41345aff438.tar.xz neosvr_docker-11f35716b4482493f264b5f06a88c41345aff438.zip |
Initial commit
Diffstat (limited to '')
-rw-r--r-- | entrypoint.sh | 33 |
1 files changed, 33 insertions, 0 deletions
diff --git a/entrypoint.sh b/entrypoint.sh new file mode 100644 index 0000000..713d82d --- /dev/null +++ b/entrypoint.sh @@ -0,0 +1,33 @@ +#!/bin/sh + +if [ -n "${INSTALL_APPS}" ]; then + OLD_IFS=$IFS + IFS=',' + for app in ${INSTALL_APPS}; do + steamcmd_binary="steamcmd" + password_bypass="" + beta_cmd="" + if [ -n "${BETA_NAME}" ]; then + beta_cmd=" -beta ${BETA_NAME}" + if [ -n "${BETA_KEY}" ]; then + beta_cmd="${beta_cmd} -betapassword ${BETA_KEY}" + fi + fi + if [ -n "${PASSWORD}" ]; then + password_bypass="echo '${PASSWORD}' | " + fi + echo "Check if ${app} is up to date" + /bin/sh -c "${steamcmd_binary} +login ${LOGIN} ${PASSWORD} +force_install_dir /steam/${app} +app_update ${app}${beta_cmd} validate +quit" + done + IFS=$OLD_IFS +fi + +arguments=$@ +case "$arguments" in + "/"*) + echo "Run custom commands : ${arguments}" + /bin/sh -c "$arguments";; + *) + echo "Run NeosVR headless client" + cd /steam/${LAUNCH_APP}/ && mono Neos.exe;; +esac |