# Check for any dumps scheduled to run after this one
foreach $follow (&list_dumps()) {
- if ($follow->{'follow'} == $dump->{'id'} && $follow->{'enabled'} == 2) {
+ if ($follow->{'follow'} eq $dump->{'id'} && $follow->{'enabled'} == 2) {
system("$cron_cmd $follow->{'id'}");
}
}
BEGIN { push(@INC, ".."); };
use WebminCore;
-#do '../web-lib.pl';
-#do '../ui-lib.pl';
&init_config();
if ($gconfig{'os_type'} =~ /^\S+\-linux$/) {
do "linux-lib.pl";
@procs = &proc::list_processes();
@running = &running_dumps(\@procs);
-($job) = grep { $_->{'id'} == $in{'id'} &&
+($job) = grep { $_->{'id'} eq $in{'id'} &&
$_->{'pid'} == $in{'pid'} } @running;
$job || &error($text{'kill_egone'});
&can_edit_dir($job) || &error($text{'kill_ecannot'});
@procs = &proc::list_processes();
@running = &running_dumps(\@procs);
-($job) = grep { $_->{'id'} == $in{'id'} &&
+($job) = grep { $_->{'id'} eq $in{'id'} &&
$_->{'pid'} == $in{'pid'} } @running;
$job || &error($text{'newtape_egone'});
&can_edit_dir($job) || &error($text{'newtape_ecannot'});
# Find the status file
opendir(DIR, $module_config_directory);
foreach $f (readdir(DIR)) {
- if ($f =~ /^(\d+)\.(\d+)\.status$/ && $1 == $dump->{'id'}) {
+ if ($f =~ /^(\d+)\.(\d+)\.status$/ && $1 eq $dump->{'id'}) {
# Got it!
$sfile = "$module_config_directory/$f";
}