I have created a debian package that sets up awstats and the required scripts for a couple of hostnames in a server I have.
My problem is with logrotate, I already update the stats with a cron job I set up on package install but I need to update stats on server logs prerotate, gthe server I'm using, lighttpd, already has an entry on /etc/logrotate.d/.
I guess I could just sed
the file and add the prerotate
update stats endscript
but that wouldn't work later when the package gets uninstalled, and I doubt it'll survive a lighttpd package update.
Any ideas?