Changeset 1513


Ignore:
Timestamp:
03/29/06 23:59:00 (7 years ago)
Author:
benjamin
Message:

logrotate apache config

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/debian/postinst

    r1512 r1513  
    77# Uses AlternC.conf 
    88. /etc/alternc/local.sh 
     9 
     10# Configure logrotate.d/apache to create log owned by group www-data : 
     11function logrotate_apache { 
     12        cp -a -f $APACHEROTATE $APACHEROTATE.tmp 
     13        sed -e 's/create 640 root adm/create 640 root www-data/' < $APACHEROTATE > $APACHEROTATE.tmp 
     14        mv -f $APACHEROTATE.tmp $APACHEROTATE 
     15} 
     16 
    917 
    1018case "$1" in 
     
    2533 
    2634    chown www-data /var/cache/alternc-webalizer 
     35     
     36    logrotate_apache 
    2737 
    2838    ;ADD menu item : 
Note: See TracChangeset for help on using the changeset viewer.