Use xz as default compression format

tags/smeserver-expire-accounts-0.1.7-1 0.1.5_el5
Daniel Berteaud 9 years ago
parent b164167729
commit 0937dfc694
  1. 4
      root/sbin/e-smith/expire-accounts

@ -30,9 +30,9 @@ my $service = $c->get('ExpireAccounts') ||
my $warn_delay = $service->prop('WarningDelay') || '30'; my $warn_delay = $service->prop('WarningDelay') || '30';
my $recipient = $service->prop('WarningRecipient') || 'root'; my $recipient = $service->prop('WarningRecipient') || 'root';
my $days_between_warn = $service->prop('DaysBetweenWarnings') || '5'; my $days_between_warn = $service->prop('DaysBetweenWarnings') || '5';
my $archive_compress = $service->prop('ArchiveCompression') || '/usr/bin/pbzip2'; my $archive_compress = $service->prop('ArchiveCompression') || '/usr/bin/xz';
my $archive_path = $service->prop('ArchivePath') || '/home/e-smith/files/archives/users'; my $archive_path = $service->prop('ArchivePath') || '/home/e-smith/files/archives/users';
my $archive_ext = 'bz2'; my $archive_ext = 'xz';
if ( !-x $archive_compress ){ if ( !-x $archive_compress ){
print "$archive_compress not found, switching back to the default /bin/gzip\n" if ($debug); print "$archive_compress not found, switching back to the default /bin/gzip\n" if ($debug);

Loading…
Cancel
Save