ports/main/nnd-s6-services/rc/group.seat/up

15 lines
193 B
Plaintext

#!/bin/execlineb -P
define GROUP seat
s6-envdir -i /etc/s6/env/path
emptyenv -p
ifelse -n {
# Silence output
redirfd -w 1 /dev/null
fdmove -c 2 1
id -g $GROUP
} {
addgroup $GROUP
} true