Skip to content

Commit

Permalink
fix: disable sshd unless we specifically enable it (#1172)
Browse files Browse the repository at this point in the history
  • Loading branch information
drpebcak authored Jan 9, 2025
1 parent ec5b4eb commit 012efa7
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions run.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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 <<VERSIONS
Expand Down

0 comments on commit 012efa7

Please sign in to comment.