From c8673ea34867ac9ab6e77e261b557c0c89cfc8b0 Mon Sep 17 00:00:00 2001 From: brodokk Date: Wed, 17 Nov 2021 00:26:52 +0100 Subject: Update env var --- Dockerfile | 12 ++++++------ entrypoint.sh | 6 +++--- 2 files changed, 9 insertions(+), 9 deletions(-) diff --git a/Dockerfile b/Dockerfile index bd75be9..3925c4d 100644 --- a/Dockerfile +++ b/Dockerfile @@ -10,15 +10,15 @@ ENV GID ${GROUP:-1000} ARG INSTALL_APPS ENV INSTALL_APPS ${INSTALL_APPS:-"740250"} # Id of the app who will be launched -ARG LAUNCH_APP -ENV LAUNCH_APP ${LAUNCH_APP:-"740250"} +ARG STEAM_LAUNCH_APP +ENV STEAM_LAUNCH_APP ${STEAM_LAUNCH_APP:-"740250"} # Steam credentials -ENV LOGIN ${LOGIN:-"anonymous"} -ENV PASSWORD ${PASSWORD:-""} +ENV STEAM_USER ${STEAM_USER:-"anonymous"} +ENV STEAM_PWD ${STEAM_PWD:-""} # Beta keys -ENV BETA_NAME ${BETA_NAME:-"headless-client"} -ENV BETA_KEY ${BETA_KEY:-""} +ENV STEAM_BETA_NAME ${STEAM_BETA_NAME:-"headless-client"} +ENV STEAM_BETA_KEY ${STEAM_BETA_KEY:-""} RUN echo steam steam/question select "I AGREE" | debconf-set-selections && \ echo steam steam/license note '' | debconf-set-selections diff --git a/entrypoint.sh b/entrypoint.sh index 0c9d612..e4c1b80 100644 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -35,9 +35,9 @@ case "$arguments" in /bin/sh -c "$arguments";; *) echo "Cleaning old stuff..." - find /steam/${LAUNCH_APP}/Data/Assets -atime +7 -delete - find /steam/${LAUNCH_APP}/Data/Cache -atime +7 -delete + find /steam/${STEAM_LAUNCH_APP}/Data/Assets -atime +7 -delete + find /steam/${STEAM_LAUNCH_APP}/Data/Cache -atime +7 -delete find /Logs -atime +30 -delete echo "Run NeosVR headless client..." - cd /steam/${LAUNCH_APP}/ && mono Neos.exe -l /logs;; + cd /steam/${STEAM_LAUNCH_APP}/ && mono Neos.exe -l /logs;; esac -- cgit v1.2.1