From: Stefan Schantl <stefan.schantl@ipfire.org>
To: development@lists.ipfire.org
Subject: [PATCH 5/5] clamav: Silence output during user creation.
Date: Tue, 14 Feb 2023 09:15:40 +0100 [thread overview]
Message-ID: <20230214081540.125883-5-stefan.schantl@ipfire.org> (raw)
In-Reply-To: <20230214081540.125883-1-stefan.schantl@ipfire.org>
[-- Attachment #1: Type: text/plain, Size: 658 bytes --]
Signed-off-by: Stefan Schantl <stefan.schantl(a)ipfire.org>
---
clamav/clamav.nm | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/clamav/clamav.nm b/clamav/clamav.nm
index de834c6e0..43ac22edc 100644
--- a/clamav/clamav.nm
+++ b/clamav/clamav.nm
@@ -76,8 +76,8 @@ end
create_users
# Create user and group for clamav.
- getent group clamav || groupadd -g 496 -r clamav || :
- getent passwd clamav || useradd -u 496 -r -s /sbin/nologin \
+ getent group clamav >/dev/null || groupadd -g 496 -r clamav || :
+ getent passwd clamav >/dev/null || useradd -u 496 -r -s /sbin/nologin \
-d / -M -g clamav clamav || :
end
--
2.30.2
prev parent reply other threads:[~2023-02-14 8:15 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2023-02-14 8:15 [PATCH 1/5] clamav: Change user/group to clamav Stefan Schantl
2023-02-14 8:15 ` [PATCH 2/5] clamav: Add config files for clamd and freshclam Stefan Schantl
2023-02-14 8:15 ` [PATCH 3/5] clamav: Drop clamav-databse subpackage Stefan Schantl
2023-02-14 8:15 ` [PATCH 4/5] clamav-databases: New package Stefan Schantl
2023-02-14 8:15 ` Stefan Schantl [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20230214081540.125883-5-stefan.schantl@ipfire.org \
--to=stefan.schantl@ipfire.org \
--cc=development@lists.ipfire.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox