Commit 71683dc5 authored by David Reimschussel's avatar David Reimschussel
Browse files

Fix root user check on alpine

parent 19c33c9c
......@@ -5,7 +5,7 @@ if [ "${1:0:1}" = '-' ]; then
set -- telegraf "$@"
fi
if [ $EUID -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
exec "$@"
else
exec su-exec telegraf "$@"
......
......@@ -5,7 +5,7 @@ if [ "${1:0:1}" = '-' ]; then
set -- telegraf "$@"
fi
if [ $EUID -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
exec "$@"
else
exec su-exec telegraf "$@"
......
......@@ -5,7 +5,7 @@ if [ "${1:0:1}" = '-' ]; then
set -- telegraf "$@"
fi
if [ $EUID -ne 0 ]; then
if [ "$(id -u)" -ne 0 ]; then
exec "$@"
else
exec su-exec telegraf "$@"
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment