FYI Anacron email error after last update

jgeiger-itvocal

New Member
Joined
Apr 27, 2017
Messages
6
Reaction score
1
After the last update update725 on a Centos 6 Asterisk 13 Freepbx 12, I get an email every night from cron saying:

Subject:Anacron job 'cron.daily' on pbx

/etc/cron.daily/logrotate:

error: asterisk:5 unknown option 'su' -- ignoring line
error: asterisk:5 unexpected text

To fix it I removed the su asterisk line. Then removed everything after create on that line. Is there any downside to my changes?

So it looks like this:

Code:
cat /etc/logrotate.d/asterisk
/var/log/asterisk/full {
   missingok
   rotate 8
   daily
   create
   postrotate
       /usr/sbin/asterisk -rx 'logger reload' > /dev/null 2> /dev/null
   endscript
}
 
Last edited by a moderator:
@wardmundy I've noticed that the logrotate patch doesnot get updated unless the old patch is removed by
Code:
chattr -i /etc/pbx/.update-guiU18
rm /etc/pbx/.update-guiU18
Then [exit] then login again.

Is there no way to have the update to the patches auto updated??
 

Members online

No members online now.

Forum statistics

Threads
26,687
Messages
174,410
Members
20,257
Latest member
Dempan
Get 3CX - Absolutely Free!

Link up your team and customers Phone System Live Chat Video Conferencing

Hosted or Self-managed. Up to 10 users free forever. No credit card. Try risk free.

3CX
A 3CX Account with that email already exists. You will be redirected to the Customer Portal to sign in or reset your password if you've forgotten it.
Back
Top