Skip to content

Commit 429be28

Browse files
committed
id can produce err output if the group name cannot be found
1 parent 1ee8d93 commit 429be28

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

telegraf/1.28/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
# (also removes 'telegraf' since we unconditionally add it and don't want it listed twice)
1919
# see https://github.com/influxdata/influxdata-docker/issues/724
2020
groups="telegraf"
21-
extra_groups="$(id -Gn)"
21+
extra_groups="$(id -Gn || true)"
2222
for group in $extra_groups; do
2323
case "$group" in
2424
root | telegraf) ;;

telegraf/1.29/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
# (also removes 'telegraf' since we unconditionally add it and don't want it listed twice)
1919
# see https://github.com/influxdata/influxdata-docker/issues/724
2020
groups="telegraf"
21-
extra_groups="$(id -Gn)"
21+
extra_groups="$(id -Gn || true)"
2222
for group in $extra_groups; do
2323
case "$group" in
2424
root | telegraf) ;;

telegraf/1.30/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
# (also removes 'telegraf' since we unconditionally add it and don't want it listed twice)
1919
# see https://github.com/influxdata/influxdata-docker/issues/724
2020
groups="telegraf"
21-
extra_groups="$(id -Gn)"
21+
extra_groups="$(id -Gn || true)"
2222
for group in $extra_groups; do
2323
case "$group" in
2424
root | telegraf) ;;

telegraf/nightly/entrypoint.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ else
1818
# (also removes 'telegraf' since we unconditionally add it and don't want it listed twice)
1919
# see https://github.com/influxdata/influxdata-docker/issues/724
2020
groups="telegraf"
21-
extra_groups="$(id -Gn)"
21+
extra_groups="$(id -Gn || true)"
2222
for group in $extra_groups; do
2323
case "$group" in
2424
root | telegraf) ;;

0 commit comments

Comments
 (0)