Always run sshd

This commit is contained in:
Héctor Molinero Fernández
2020-03-01 16:13:40 +01:00
parent 259f66693c
commit 7cf3f7a1f9
5 changed files with 10 additions and 16 deletions

View File

@@ -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/

View File

@@ -1,4 +1,8 @@
#!/bin/sh
if [ ! -e /run/sshd/ ]; then
mkdir /run/sshd/
fi
exec 2>&1
exec /usr/sbin/sshd -D