From 012efa7ab2d8cf8d985ca200e8c0c4101492c443 Mon Sep 17 00:00:00 2001 From: Taylor Price Date: Thu, 9 Jan 2025 11:06:19 -0700 Subject: [PATCH] fix: disable sshd unless we specifically enable it (#1172) --- 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 <