16 lines
232 B
Plaintext
16 lines
232 B
Plaintext
|
#!/bin/execlineb -P
|
||
|
define SHELL /sbin/nologin
|
||
|
define USER seat
|
||
|
|
||
|
s6-envdir -i /etc/s6/env/path
|
||
|
emptyenv -p
|
||
|
|
||
|
ifelse -n {
|
||
|
# Silence output
|
||
|
redirfd -w 1 /dev/null
|
||
|
fdmove -c 2 1
|
||
|
id -u $USER
|
||
|
} {
|
||
|
adduser -s $SHELL -H -D $USER
|
||
|
} true
|