File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'chronograf' ]; then
9
9
export BOLT_PATH=${BOLT_PATH:-/ var/ lib/ chronograf/ chronograf-v1.db}
10
10
fi
11
11
12
- if [ " $( id -u) " -ne 0 ] || { [ ! -z " ${CHRONOGRAF_AS_ROOT} " ] && [ " ${CHRONOGRAF_AS_ROOT} " ! = " false " ]; } ; then
12
+ if [ " $( id -u) " -ne 0 ] || [ " ${CHRONOGRAF_AS_ROOT} " = " true " ]; then
13
13
exec " $@ "
14
14
else
15
15
exec su-exec chronograf " $@ "
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ if [ "$1" = 'chronograf' ]; then
9
9
export BOLT_PATH=${BOLT_PATH:-/ var/ lib/ chronograf/ chronograf-v1.db}
10
10
fi
11
11
12
- if [ " $( id -u) " -ne 0 ] || { [ ! -z " ${CHRONOGRAF_AS_ROOT} " ] && [ " ${CHRONOGRAF_AS_ROOT} " ! = " false " ]; } ; then
12
+ if [ " $( id -u) " -ne 0 ] || [ " ${CHRONOGRAF_AS_ROOT} " = " true " ]; then
13
13
exec " $@ "
14
14
else
15
15
exec setpriv --reuid chronograf --regid chronograf --init-groups " $@ "
You can’t perform that action at this time.
0 commit comments