jailsetup.sh: replace sshd even if it's busy
commitb33c25a4a295893c78b3f28aa52036b449c8cd6f
authorKyle J. McKay <mackyle@gmail.com>
Fri, 27 Dec 2013 21:06:30 +0000 (27 13:06 -0800)
committerKyle J. McKay <mackyle@gmail.com>
Fri, 27 Dec 2013 21:06:30 +0000 (27 13:06 -0800)
treed9a510753b93c0162d5c837c0650c80eec54b20e
parent820f2bd5ba2da9ca80db16cc226894a1da2a69c4
jailsetup.sh: replace sshd even if it's busy

Previously if sbin/sshd existed in the jail and was running, then
the attempt to update it would fail.  This can potentially cause
a problem if all the libraries sshd uses are updated in the jail
but the sshd binary itself is not.  The jail could end up with
an older sshd binary that is incompatible with newer libraries.

Avoid this by first removing any existing sshd binary from the
jail before attempting to install sshd.  This will succeed even
if the sshd binary is in use.
jailsetup.sh