Ensure sure that the post install script is compatible with RHEL 5

closes #1091
closes #1094
This commit is contained in:
Adithya B Cherunilam 2016-04-26 02:03:07 +05:30 committed by Cameron Sparr
parent 08f4b1ae8a
commit 024e1088eb
1 changed files with 1 additions and 1 deletions

View File

@ -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