Fixed problems with Agent custom instalations. Tiquet: #3419

This commit is contained in:
m-lopez-f 2016-02-25 11:49:56 +01:00
parent f41949cf57
commit 3609fe218f
1 changed files with 1 additions and 0 deletions

View File

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