forked from pool/system-user-gromox
Jan Engelhardt
6af20e7c2c
OBS-URL: https://build.opensuse.org/package/show/server:mail/system-user-gromox?expand=0&rev=14
15 lines
459 B
Bash
15 lines
459 B
Bash
#!/bin/sh
|
|
case "$1" in
|
|
configure|reconfigure)
|
|
if [ -x /usr/bin/systemd-sysusers ]; then
|
|
/usr/bin/systemd-sysusers system-user-gromox.conf
|
|
else
|
|
getent group gromox >/dev/null || addgroup --system gromox
|
|
getent group gromoxcf >/dev/null || addgroup --system gromoxcf
|
|
getent passwd gromox >/dev/null || \
|
|
adduser --system gromox --home /var/lib/gromox --no-create-home --disabled-password --ingroup gromox
|
|
usermod gromox -aG gromoxcf
|
|
fi
|
|
;;
|
|
esac
|