Fixed problems with Agent custom instalations. Tiquet: #3419

(cherry picked from commit 3609fe218f)
This commit is contained in:
m-lopez-f 2016-02-25 11:49:56 +01:00
parent f612c521c0
commit 7a88fe6436
1 changed files with 1 additions and 0 deletions

View File

@ -471,6 +471,7 @@ install () {
then
[ -d $DESTDIR/etc/logrotate.d ] && mkdir -p $DESTDIR/etc/logrotate.d
echo "Creating logrotate.d entry for Pandora FMS log management"
echo "$PANDORA_BASE$PANDORA_LOG_DIR/$PANDORA_LOG" > pandora_agent_logrotate
cp pandora_agent_logrotate $DESTDIR/etc/logrotate.d/pandora_agent
else
echo "Please add a log rotation schedule manually to your log rotation daemon (if any)"