summaryrefslogtreecommitdiffstats
path: root/security/ossec-hids-local/files/patch-src_init_adduser.sh
diff options
context:
space:
mode:
Diffstat (limited to 'security/ossec-hids-local/files/patch-src_init_adduser.sh')
-rw-r--r--security/ossec-hids-local/files/patch-src_init_adduser.sh11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/ossec-hids-local/files/patch-src_init_adduser.sh b/security/ossec-hids-local/files/patch-src_init_adduser.sh
new file mode 100644
index 0000000..21c0d0b
--- /dev/null
+++ b/security/ossec-hids-local/files/patch-src_init_adduser.sh
@@ -0,0 +1,11 @@
+--- src/init/adduser.sh.orig 2018-06-26 12:15:38 UTC
++++ src/init/adduser.sh
+@@ -69,7 +69,7 @@ else
+ fi
+
+ if [ -x /usr/bin/getent ]; then
+- if [ `getent group ossec | wc -l` -lt 1 ]; then
++ if [ `getent group "${GROUP}" | wc -l` -lt 1 ]; then
+ ${GROUPADD} "${GROUP}"
+ fi
+ elif ! grep "^${GROUP}" /etc/group > /dev/null 2>&1; then