Fix stupid errors in templates
This commit is contained in:
parent
68c0e65c58
commit
668f97e5ba
|
@ -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
|
||||
}
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue