[Pkg-clamav-devel] Bug#1008279: clamav-base: Silence output to id command's output to stderr before adding clamav user
Mike Gabriel
mike.gabriel at das-netzwerkteam.de
Fri Mar 25 20:44:24 GMT 2022
Package: src:clamav
Severity: wishlist
Version: 0.103.5+dfsg-1
Dear maintainers of clamav,
I am currently working on a project where clamav gets installed and
configured via FAI. The FAI installation collects and error from the
clamav-base's postinst script:
```
[...]
Setting up clamav-base (<version>)
id: 'clamav': no such user
[...]
```
It would be cool to have this non-error silenced in
clamav-base.postinst. Patch attached.
Mike
--
DAS-NETZWERKTEAM
c\o Technik- und Ökologiezentrum Eckernförde
Mike Gabriel, Marienthaler Str. 17, 24340 Eckernförde
mobile: +49 (1520) 1976 148
landline: +49 (4351) 850 8940
GnuPG Fingerprint: 9BFB AEE8 6C0A A5FF BF22 0782 9AF4 6B30 2577 1B31
mail: mike.gabriel at das-netzwerkteam.de, http://das-netzwerkteam.de
-------------- next part --------------
diff -Nru clamav-0.103.5+dfsg/debian/changelog clamav-0.103.5+dfsg/debian/changelog
--- clamav-0.103.5+dfsg/debian/changelog 2022-01-12 21:31:23.000000000 +0100
+++ clamav-0.103.5+dfsg/debian/changelog 2022-03-25 21:33:24.000000000 +0100
@@ -1,3 +1,12 @@
+clamav (0.103.5+dfsg-1.1) UNRELEASED; urgency=medium
+
+ * Non-maintainer upload.
+ * debian/clamav-base:
+ + Silence id command's output to stderr before adding clamav user.
+ (Closes: -1).
+
+ -- Mike Gabriel <sunweaver at debian.org> Fri, 25 Mar 2022 21:33:24 +0100
+
clamav (0.103.5+dfsg-1) unstable; urgency=medium
* Import 0.103.5
diff -Nru clamav-0.103.5+dfsg/debian/clamav-base.postinst.in clamav-0.103.5+dfsg/debian/clamav-base.postinst.in
--- clamav-0.103.5+dfsg/debian/clamav-base.postinst.in 2022-01-12 21:02:01.000000000 +0100
+++ clamav-0.103.5+dfsg/debian/clamav-base.postinst.in 2022-03-25 21:33:24.000000000 +0100
@@ -32,7 +32,7 @@
# Set up the clamav user on new install
if [ -z "$2" ]; then
- if ! id clamav; then
+ if ! id clamav 2>/dev/null; then
adduser --system --no-create-home --quiet \
--disabled-password --disabled-login \
--shell /bin/false --group --home /var/lib/clamav clamav
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 851 bytes
Desc: Digitale PGP-Signatur
URL: <http://alioth-lists.debian.net/pipermail/pkg-clamav-devel/attachments/20220325/c1abb5aa/attachment.sig>
More information about the Pkg-clamav-devel
mailing list