Jan Engelhardt
95bf0d1561
OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-grommunio?expand=0&rev=7
17 lines
459 B
Bash
17 lines
459 B
Bash
#!/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
|