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 ! getent group matemat >/dev/null; then
|
||||
addgroup --quiet --system matemat
|
||||
groupadd --system matemat
|
||||
fi
|
||||
|
||||
if ! getent passwd matemat >/dev/null; then
|
||||
adduser --quiet --system --create-home --ingroup matemat --home /var/lib/matemat --shell /usr/sbin/nologin \
|
||||
matemat
|
||||
useradd --system --create-home --gid matemat --home-dir /var/lib/matemat --shell /usr/sbin/nologin matemat
|
||||
fi
|
||||
|
||||
chown matemat:matemat -R /var/lib/matemat
|
||||
|
|
Loading…
Reference in a new issue