Use pbzip2 instead of bzip2 for maillog rotation

tags/ipasserelle-base-0.2.65-1
Daniel Berteaud 13 years ago
parent d9f61f4ab7
commit 5013152756
  1. 6
      ipasserelle-base.spec
  2. 2
      root/etc/cron.monthly/maillog-rotate

@ -1,4 +1,4 @@
%define version 0.2.7
%define version 0.2.8
%define release 1.beta2
%define name ipasserelle-base
@ -37,6 +37,7 @@ Requires: perl(Text::Unaccent::PurePerl)
Requires: perl(Net::LDAP)
Requires: perl(Proc::ProcessTable)
Requires: perl(Proc::ProcessTable::Process)
Requires: pbzip2
%description
@ -45,6 +46,9 @@ Based on SMEServer, iPasserelle is a specially configured
SME Server, with some additionnal modules
%changelog
* Thu May 24 2012 Daniel Berteaud <daniel@firewall-services.com> 0.2.8-1.sme
- Use pbzip2 instead of bzip2 for maillog rotation
* Wed May 23 2012 Daniel Berteaud <daniel@firewall-services.com> 0.2.7-1.sme
- Include CHANGELOG

@ -25,7 +25,7 @@ chmod +t $HOME
cd $HOME
find Maildir/cur/ -type f | xargs -I __INPUT__ mv __INPUT__ Maildir/.$YEAR.$MONTH/cur/ 2>&1 > /dev/null
find Maildir/new/ -type f | xargs -I __INPUT__ mv __INPUT__ Maildir/.$YEAR.$MONTH/new/ 2>&1 > /dev/null
su - -s /bin/bash $USER -c "tar cjf $HOME/mails_$YEAR.$MONTH.tar.bz2 Maildir/.$YEAR.$MONTH/"
su - -s /bin/bash $USER -c "tar -c --use-compress-program=pbzip2 -f $HOME/mails_$YEAR.$MONTH.tar.bz2 Maildir/.$YEAR.$MONTH/"
su - -s /bin/bash $USER -c "rm -rf Maildir/.$YEAR.$MONTH/"
# Unlock mail delivery
chmod -t $HOME

Loading…
Cancel
Save