Fixed debian postinst

This commit is contained in:
s3lph 2018-11-04 15:19:30 +01:00
parent ea18d0e8de
commit 57f794cc59

View file

@ -5,12 +5,11 @@ set -e
if [[ "$1" == "configure" ]]; then if [[ "$1" == "configure" ]]; then
if ! getent group matemat >/dev/null; then if ! getent group matemat >/dev/null; then
addgroup --quiet --system matemat groupadd --system matemat
fi fi
if ! getent passwd matemat >/dev/null; then if ! getent passwd matemat >/dev/null; then
adduser --quiet --system --create-home --ingroup matemat --home /var/lib/matemat --shell /usr/sbin/nologin \ useradd --system --create-home --gid matemat --home-dir /var/lib/matemat --shell /usr/sbin/nologin matemat
matemat
fi fi
chown matemat:matemat -R /var/lib/matemat chown matemat:matemat -R /var/lib/matemat