1
0
system-user-grommunio/debian.system-user-grommunio.postinst

17 lines
459 B
Plaintext
Raw Normal View History

#!/bin/sh
2024-06-04 10:07:54 +02:00
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