We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3498fa3 commit 74dfd2bCopy full SHA for 74dfd2b
pkg/logstash.sysv
@@ -52,7 +52,7 @@ start() {
52
53
# chown doesn't grab the suplimental groups when setting the user:group - so we have to do it for it.
54
# Boy, I hope we're root here.
55
- SGROUPS=$(grep "$LS_USER" /etc/group | grep -v "^$LS_GROUP" | cut -d: -f1 | tr "\\n" "," | sed 's/,$//'; echo '')
+ SGROUPS=$(id -Gn "$LS_USER" | tr " " "," | sed 's/,$//'; echo '')
56
57
if [ ! -z $SGROUPS ]
58
then
0 commit comments