Don’t manipulate positional parameters in DEB postinst script. (#13169)
Austin S. Hemmelgarn committed
Jun 16, 2022 at 17:05 UTC
037c9e2cd780d3094a128a9d28325216827702ac
1 file changed
+1
-3
contrib/debian/netdata.postinst
+1
-3
@@ -26,9 +26,7 @@ case "$1" in
26
adduser --quiet --system --ingroup netdata --home /var/lib/netdata --no-create-home netdata
27
fi
28
29
- set -- docker nginx varnish haproxy adm nsd proxy squid ceph nobody I2C
30
- for item
31
- do
29
+ for item in docker nginx varnish haproxy adm nsd proxy squid ceph nobody I2C; do
30
if getent group $item > /dev/null 2>&1; then
31
usermod -a -G $item netdata
32
fi