Skip to content
Snippets Groups Projects
Commit 77c80188 authored by ale's avatar ale
Browse files

fix broken user check

parent d9e77000
No related branches found
No related tags found
No related merge requests found
......@@ -4,10 +4,8 @@
case "$1" in
configure)
if ! getent user ai-auditd >/dev/null; then
adduser --system --home /var/lib/auditd --no-create-home \
adduser --quiet --system --home /var/lib/auditd --no-create-home \
--disabled-password ai-auditd
fi
mkdir -p /var/lib/auditd
chown -R ai-auditd:root /var/lib/auditd
......
......@@ -4,14 +4,10 @@
case "$1" in
configure)
if ! getent group audit >/dev/null; then
addgroup --system audit
fi
addgroup --quiet --system audit
if ! getent user localaudit >/dev/null; then
adduser --system --home /var/spool/audit --no-create-home \
adduser --quiet --system --home /var/spool/audit --no-create-home \
--disabled-password --ingroup audit localaudit
fi
mkdir -p /var/spool/audit/incoming
chown -R localaudit:audit /var/spool/audit
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment