Added permissions check to post-install script due to issues with RPMs having the incorrect permissions on the log directory.

This commit is contained in:
Ross McDonald 2016-03-02 11:16:30 -06:00 committed by Michele Fadda
parent 7dd3b538ba
commit aff65d42b1
1 changed files with 2 additions and 0 deletions

View File

@ -28,7 +28,9 @@ if [[ $? -ne 0 ]]; then
useradd --system -U -M telegraf -s /bin/false -d /etc/telegraf
fi
test -d $LOG_DIR || mkdir -p $LOG_DIR
chown -R -L telegraf:telegraf $LOG_DIR
chmod 755 $LOG_DIR
# Remove legacy symlink, if it exists
if [[ -L /etc/init.d/telegraf ]]; then