From f6a4732e877374a638fd59edffd30526cfdeefb1 Mon Sep 17 00:00:00 2001 From: Martin Konecny Date: Mon, 20 Aug 2012 15:54:10 -0400 Subject: [PATCH] CC-4119: zendphp.log is not rotated -fixed --- airtime_mvc/build/airtime-php.logrotate | 12 ++++++++++++ install_minimal/include/airtime-copy-files.sh | 2 ++ 2 files changed, 14 insertions(+) create mode 100644 airtime_mvc/build/airtime-php.logrotate diff --git a/airtime_mvc/build/airtime-php.logrotate b/airtime_mvc/build/airtime-php.logrotate new file mode 100644 index 000000000..167b85df1 --- /dev/null +++ b/airtime_mvc/build/airtime-php.logrotate @@ -0,0 +1,12 @@ +/var/log/airtime/zendphp.log { + compress + rotate 10 + size 1000k + missingok + notifempty + sharedscripts + postrotate + touch /var/log/airtime/zendphp.log + chown www-data:www-data /var/log/airtime/zendphp.log + endscript +} diff --git a/install_minimal/include/airtime-copy-files.sh b/install_minimal/include/airtime-copy-files.sh index 236cf5f98..7d6a01dc2 100755 --- a/install_minimal/include/airtime-copy-files.sh +++ b/install_minimal/include/airtime-copy-files.sh @@ -97,6 +97,8 @@ if [ "$web" = "t" ]; then rm -rf "/usr/share/airtime" mkdir -p /usr/share/airtime cp -R $AIRTIMEROOT/airtime_mvc/* /usr/share/airtime/ + rm -f /etc/logrotate.d/airtime-php + cp $AIRTIMEROOT/airtime_mvc/build/airtime-php.logrotate /etc/logrotate.d/airtime-php fi echo "* Creating /var/log/airtime"