ports/main/nnd-s6-services/rc/user.sshd/up

14 lines
245 B
Plaintext

#!/bin/execlineb -P
define SHELL /sbin/nologin
define USER sshd
s6-envdir -i /etc/s6/env/path
emptyenv -p
# TODO: Handle user already being present
foreground {
adduser -s $SHELL -H -D $USER
} if -nt {
importas status ? test $status -eq 1
}