mirror of
https://github.com/webmin/webmin.git
synced 2026-02-07 07:52:13 +00:00
25 lines
569 B
Perl
Executable File
25 lines
569 B
Perl
Executable File
|
|
require 'time-lib.pl';
|
|
|
|
# Convert existing cron job to webmin cron
|
|
sub module_install
|
|
{
|
|
if (&foreign_check("cron")) {
|
|
&foreign_require("cron", "cron-lib.pl");
|
|
local $job = &find_cron_job();
|
|
if ($job) {
|
|
$wcron = { 'module' => $module_name,
|
|
'func' => 'sync_time_cron',
|
|
'special' => $job->{'special'},
|
|
'mins' => $job->{'mins'},
|
|
'hours' => $job->{'hours'},
|
|
'days' => $job->{'days'},
|
|
'months' => $job->{'months'},
|
|
'weekdays' => $job->{'weekdays'},
|
|
};
|
|
&webmincron::create_webmin_cron($wcron, $job->{'command'});
|
|
}
|
|
}
|
|
}
|
|
|