From 6217a5e732b453cd1ec0491da2b991aa066801a3 Mon Sep 17 00:00:00 2001 From: Timo Reichl Date: Fri, 16 Sep 2022 19:51:13 +0200 Subject: [PATCH] image/games: make environment variables available in SSH sessions Signed-off-by: Timo Reichl --- image/games/base/docker-entrypoint.sh | 3 +++ 1 file changed, 3 insertions(+) diff --git a/image/games/base/docker-entrypoint.sh b/image/games/base/docker-entrypoint.sh index 3b8d2c5..9042f1c 100755 --- a/image/games/base/docker-entrypoint.sh +++ b/image/games/base/docker-entrypoint.sh @@ -64,6 +64,9 @@ if [ $(id -u) -eq 0 ]; then prepare_ssh_host_key "ecdsa" prepare_ssh_host_key "ed25519" + # Add container environment as system environment variables to make them available in SSH sessions + env | grep STEAMCMD_ > /etc/environment + # Run the server /usr/sbin/sshd fi