forked from s3lph/matemat
Fixed debian postinst
This commit is contained in:
parent
ea18d0e8de
commit
57f794cc59
1 changed files with 2 additions and 3 deletions
|
@ -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
|
||||||
|
|
Loading…
Reference in a new issue