CC-4119: zendphp.log is not rotated
-fixed
This commit is contained in:
parent
5315d1efd0
commit
f6a4732e87
2 changed files with 14 additions and 0 deletions
12
airtime_mvc/build/airtime-php.logrotate
Normal file
12
airtime_mvc/build/airtime-php.logrotate
Normal file
|
@ -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
|
||||||
|
}
|
|
@ -97,6 +97,8 @@ if [ "$web" = "t" ]; then
|
||||||
rm -rf "/usr/share/airtime"
|
rm -rf "/usr/share/airtime"
|
||||||
mkdir -p /usr/share/airtime
|
mkdir -p /usr/share/airtime
|
||||||
cp -R $AIRTIMEROOT/airtime_mvc/* /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
|
fi
|
||||||
|
|
||||||
echo "* Creating /var/log/airtime"
|
echo "* Creating /var/log/airtime"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue