From 024e1088eb3e1edd3fe2eea4156f98f0bf1caa68 Mon Sep 17 00:00:00 2001 From: Adithya B Cherunilam Date: Tue, 26 Apr 2016 02:03:07 +0530 Subject: [PATCH] Ensure sure that the post install script is compatible with RHEL 5 closes #1091 closes #1094 --- scripts/post-install.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/post-install.sh b/scripts/post-install.sh index 9aec08543..fb0b441e8 100644 --- a/scripts/post-install.sh +++ b/scripts/post-install.sh @@ -26,7 +26,7 @@ function install_chkconfig { id telegraf &>/dev/null if [[ $? -ne 0 ]]; then - useradd --system -U -M telegraf -s /bin/false -d /etc/telegraf + useradd -r -K USERGROUPS_ENAB=yes -M telegraf -s /bin/false -d /etc/telegraf fi test -d $LOG_DIR || mkdir -p $LOG_DIR