mirror of
https://github.com/webmin/webmin.git
synced 2026-01-16 15:06:07 +00:00
24 lines
434 B
Perl
Executable File
24 lines
434 B
Perl
Executable File
# uninstall.pl
|
|
# Called when webmin is uninstalled
|
|
|
|
require 'status-lib.pl';
|
|
|
|
sub module_uninstall
|
|
{
|
|
if ($config{'sched_mode'}) {
|
|
# Scheduled checking is enabled .. remove the cron job
|
|
&foreign_require("cron");
|
|
$cron_cmd = "$module_config_directory/monitor.pl";
|
|
foreach $j (&cron::list_cron_jobs()) {
|
|
if ($j->{'user'} eq 'root' &&
|
|
$j->{'command'} eq $cron_cmd) {
|
|
&cron::delete_cron_job($j);
|
|
last;
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
1;
|
|
|