Skip to content

Commit

Permalink
Dynamic sshd sv path
Browse files Browse the repository at this point in the history
Dynamically find sshd path in sv file via whereis and awk
  • Loading branch information
lethedata committed Sep 5, 2024
1 parent e7f74f8 commit 2ca4d0e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sv/sshd/run
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,5 @@
exec 2>&1
ssh-keygen -A >/dev/null 2>&1
[ -r conf ] && . ./conf
exec /usr/bin/sshd -D $OPTS
cmdsshd=$(whereis -b sshd | awk '{ print $2 }')
exec "$cmdsshd" -D $OPTS

0 comments on commit 2ca4d0e

Please sign in to comment.