aboutsummaryrefslogtreecommitdiffstats
path: root/main/clamav
diff options
context:
space:
mode:
authorPrzemyslaw Pawelczyk <przemoc@zoho.com>2016-04-23 13:13:38 +0200
committerNatanael Copa <ncopa@alpinelinux.org>2016-04-25 06:54:18 +0000
commita593d306c92f8bc15a1797c0a2ccfa784edbc4a0 (patch)
treee4ea45498386fd0c74f7a6a10422836df56932af /main/clamav
parentccc056dbf9d3fdeef2a8e8abc00f9d2cddc5348e (diff)
downloadaports-a593d306c92f8bc15a1797c0a2ccfa784edbc4a0.tar.bz2
aports-a593d306c92f8bc15a1797c0a2ccfa784edbc4a0.tar.xz
Add -g option (GECOS/comment) to adduser in scripts.
This way we can avoid ugly default: Linux user,,,
Diffstat (limited to 'main/clamav')
-rw-r--r--main/clamav/clamav-daemon.pre-install2
-rw-r--r--main/clamav/clamav-db.pre-install2
-rw-r--r--main/clamav/freshclam.pre-install2
3 files changed, 3 insertions, 3 deletions
diff --git a/main/clamav/clamav-daemon.pre-install b/main/clamav/clamav-daemon.pre-install
index 4528fbb2cf..5ef833a7a6 100644
--- a/main/clamav/clamav-daemon.pre-install
+++ b/main/clamav/clamav-daemon.pre-install
@@ -1,5 +1,5 @@
#!/bin/sh
addgroup -S clamav 2>/dev/null
-adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav clamav 2>/dev/null
+adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav -g clamav clamav 2>/dev/null
exit 0
diff --git a/main/clamav/clamav-db.pre-install b/main/clamav/clamav-db.pre-install
index 9bc70ddaa4..f46eabe8b0 100644
--- a/main/clamav/clamav-db.pre-install
+++ b/main/clamav/clamav-db.pre-install
@@ -1,4 +1,4 @@
#!/bin/sh
-adduser -S -H -s /sbin/nologin -D clamav 2>/dev/null
+adduser -S -H -s /sbin/nologin -D -g clamav clamav 2>/dev/null
exit 0
diff --git a/main/clamav/freshclam.pre-install b/main/clamav/freshclam.pre-install
index 4528fbb2cf..5ef833a7a6 100644
--- a/main/clamav/freshclam.pre-install
+++ b/main/clamav/freshclam.pre-install
@@ -1,5 +1,5 @@
#!/bin/sh
addgroup -S clamav 2>/dev/null
-adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav clamav 2>/dev/null
+adduser -S -h /var/lib/clamav -H -s /sbin/nologin -D -G clamav -g clamav clamav 2>/dev/null
exit 0