2023-01-17 16:45:53 +01:00
|
|
|
#!/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
|