From d09a21c6bd1501c275694c9375f66113087d672b Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Thu, 9 Jan 2025 09:42:39 -0700 Subject: [PATCH] fix: disable sshd unless we specifically enable it Signed-off-by: Taylor Price --- run.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index f62919aa7..664294f5c 100644 --- a/run.sh +++ b/run.sh @@ -14,8 +14,12 @@ check_postgres_active() { exit 1 } -mkdir -p /run/sshd -/usr/sbin/sshd -D & +# Only enable sshd in Render. Remove sshd entirely once we have migrated out of Render. +if [[ -v ENABLE_SSHD ]]; then + mkdir -p /run/sshd + /usr/sbin/sshd -D & +fi + mkdir -p /data/cache # This is YAML export OBOT_SERVER_VERSIONS="$(cat <