mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-28 16:24:54 +02:00
Fixed logrotate config file and its installation.
(cherry picked from commit ec3a500b01e78d7ecfde76e574107d2eca223441)
This commit is contained in:
parent
234185f6ba
commit
653d7093fc
@ -471,8 +471,8 @@ 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
|
sed -e "s|^/var/log/pandora/pandora_agent.log|$PANDORA_BASE_REAL$PANDORA_LOG_DIR/$PANDORA_LOG|" pandora_agent_logrotate \
|
||||||
cp pandora_agent_logrotate $DESTDIR/etc/logrotate.d/pandora_agent
|
> $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)"
|
||||||
fi
|
fi
|
||||||
|
@ -1 +1,10 @@
|
|||||||
/var/log/pandora/pandora_agent.log
|
/var/log/pandora/pandora_agent.log {
|
||||||
|
weekly
|
||||||
|
missingok
|
||||||
|
size 300000
|
||||||
|
rotate 3
|
||||||
|
maxage 90
|
||||||
|
compress
|
||||||
|
notifempty
|
||||||
|
copytruncate
|
||||||
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user