[5/5] clamav: Silence output during user creation.

Message ID 20230214081540.125883-5-stefan.schantl@ipfire.org
State Accepted
Commit c388759b404b6bb35c4edc0acfd4ed8c2a78738d
Headers
Series [1/5] clamav: Change user/group to clamav |

Commit Message

Stefan Schantl Feb. 14, 2023, 8:15 a.m. UTC
  Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org>
---
 clamav/clamav.nm | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
  

Patch

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