Fix stupid errors in templates

This commit is contained in:
Daniel Berteaud 2013-11-20 13:11:15 +01:00
parent 68c0e65c58
commit 668f97e5ba
2 changed files with 3 additions and 2 deletions

View File

@ -2,7 +2,7 @@
my $clam = $clamd{'status'} || 'disabled';
return '' unless ($clam eq 'enabled');
my $max = $clamav{StreamMaxLength} || '25M';
my $limit = $max
my $limit = $max;
$limit =~ s/[KMG]$//;
if ($max =~ m/G$/){
$limit = $limit * 1024 * 1024 * 1024;
@ -18,4 +18,5 @@ $limit -= 1024 * 1024;
$OUT .=<<"EOF";
\$clamdScan = 'unix:///var/clamav/clamd.socket';
\$scanMax = $limit;
EOF
}

View File

@ -3,7 +3,7 @@ my $db = $dl{'DbName'} || 'dl';
my $user = $dl{'DbUser'} || 'dl';
my $pass = $dl{'DbPassword'} || 'secret';
my $dbstruct = `rpm -qd dl | grep mysql.sql`;
my $dbstruct = `rpm -ql dl | grep mysql.sql`;
$OUT .= <<"END";
#! /bin/sh