blob: 713d82d47ba91209b0633ebe60de42a1550a8db9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
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
|