2024-06-04 10:06:31 +02:00
|
|
|
#!/bin/sh
|
2024-09-04 21:29:08 +02:00
|
|
|
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
|