diff --git a/scripts/package.sh b/scripts/package.sh index ace553e57..e88e52f9e 100755 --- a/scripts/package.sh +++ b/scripts/package.sh @@ -149,7 +149,7 @@ ln -sfn $INSTALL_ROOT_DIR/versions/$version/telegraf $INSTALL_ROOT_DIR/telegraf if ! id telegraf >/dev/null 2>&1; then useradd --help 2>&1| grep -- --system > /dev/null 2>&1 old_useradd=\$? - if [[ \$old_useradd == 0 ]] + if [ \$old_useradd -eq 0 ] then useradd --system -U -M telegraf else