Skip to content
This repository has been archived by the owner on Sep 18, 2024. It is now read-only.

Commit

Permalink
image/games: make environment variables available in SSH sessions
Browse files Browse the repository at this point in the history
Signed-off-by: Timo Reichl <[email protected]>
  • Loading branch information
Timo Reichl committed Sep 16, 2022
1 parent 57e04e9 commit 6217a5e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions image/games/base/docker-entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6217a5e

Please sign in to comment.