Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
jcameron committed Dec 20, 2019
1 parent 988025e commit 70a8057
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions virtual_feature.pl
Original file line number Diff line number Diff line change
Expand Up @@ -171,14 +171,14 @@ sub feature_setup
&save_run_user($d->{'dom'}, $d->{'user'});
if (!$config{'nocron'}) {
my $job = { 'user' => 'root',
'command' => "$cron_cmd ".
'command' => "$cron_cmd ".
($d->{'web'} ? "" : "--output $outdir ").$d->{'dom'},
'active' => 1,
'mins' => int(rand()*60),
'hours' => int(rand()*24),
'days' => '*',
'months' => '*',
'weekdays' => '*' };
'active' => 1,
'mins' => int(rand()*60),
'hours' => int(rand()*24),
'days' => '*',
'months' => '*',
'weekdays' => '*' };
&cron::create_cron_job($job);
}
&cron::create_wrapper($cron_cmd, $module_name, "awstats.pl");
Expand Down Expand Up @@ -219,9 +219,8 @@ sub feature_setup

# Setup password protection for awstats.pl
my $tmpl = &virtual_server::get_template($d->{'template'});
if ($d->{'web'} &&
($tmpl->{$module_name.'passwd'} ||
$tmpl->{$module_name.'passwd'} eq '')) {
my $p = $tmpl->{$module_name.'passwd'} || '';
if ($d->{'web'} && $p ne '0') {
&$virtual_server::first_print($text{'feat_passwd'});
&virtual_server::obtain_lock_web($d);
my $added = 0;
Expand Down

0 comments on commit 70a8057

Please sign in to comment.