Always run sshd
This commit is contained in:
@@ -44,11 +44,6 @@ unset UNPRIVILEGED_USER_PASSWORD
|
||||
# Dump environment variables
|
||||
export-env > /etc/profile.d/env.sh
|
||||
|
||||
# Enable sshd service if ENABLE_SSHD is true
|
||||
if [ "${ENABLE_SSHD:?}" = 'true' ]; then
|
||||
ln -s /etc/sv/sshd /etc/service/
|
||||
fi
|
||||
|
||||
# Enable xdummy service if ENABLE_VIRTUALGL is true
|
||||
if [ "${ENABLE_VIRTUALGL:?}" = 'true' ]; then
|
||||
ln -s /etc/sv/xdummy /etc/service/
|
||||
|
||||
@@ -1,4 +1,8 @@
|
||||
#!/bin/sh
|
||||
|
||||
if [ ! -e /run/sshd/ ]; then
|
||||
mkdir /run/sshd/
|
||||
fi
|
||||
|
||||
exec 2>&1
|
||||
exec /usr/sbin/sshd -D
|
||||
|
||||
Reference in New Issue
Block a user