]> git.ipfire.org Git - ipfire-3.x.git/commitdiff
clamav: Silence output during user creation.
authorStefan Schantl <stefan.schantl@ipfire.org>
Tue, 14 Feb 2023 08:15:40 +0000 (09:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Thu, 16 Feb 2023 11:25:38 +0000 (11:25 +0000)
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
clamav/clamav.nm

index de834c6e00a86c9bd4cbdc2157715d78b8dbf669..43ac22edca7593f98a8628cdf8da3d8766847c33 100644 (file)
@@ -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