ports/main/nnd-s6-services/tmpl/user

15 lines
285 B
Plaintext
Executable File

#!/bin/execlineb -P
importas -i USER USER
importas -D /sbin/nologin SHELL SHELL
ifelse -n {
# Silence output
redirfd -w 1 /dev/null
fdmove -c 2 1
pipeline { cat /etc/passwd }
pipeline { cut -d: -f1 }
grep $USER
} {
adduser -S -D -H -h /dev/null -s $SHELL -g $USER $USER
} true