Ensure sure that the post install script is compatible with RHEL 5
This commit is contained in:
parent
07728d7425
commit
77630fd069
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue