forked from pool/system-user-grommunio
17 lines
459 B
Plaintext
17 lines
459 B
Plaintext
|
#!/bin/sh
|
||
|
case "$1" in
|
||
|
configure|reconfigure)
|
||
|
if [ -x /usr/bin/systemd-sysusers ]; then
|
||
|
/usr/bin/systemd-sysusers system-user-grommunio.conf
|
||
|
else
|
||
|
for i in grommunio groweb groindex; do
|
||
|
getent group "$i" >/dev/null || addgroup --system "$i"
|
||
|
getent passwd "$i" >/dev/null || \
|
||
|
adduser --system "$i" --home / --no-create-home --disabled-password --ingroup "$i"
|
||
|
done
|
||
|
usermod grommunio -aG gromoxcf
|
||
|
usermod groindex -aG gromoxcf
|
||
|
fi
|
||
|
;;
|
||
|
esac
|