From 67e93b1f44f2708c253d32418bcbf89d99739001 Mon Sep 17 00:00:00 2001 From: Jamie Cameron Date: Wed, 19 Jan 2011 10:24:00 -0800 Subject: [PATCH] Make usermin.pl cron more aggressive --- usermin/uninstall.pl | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/usermin/uninstall.pl b/usermin/uninstall.pl index efcf0a448..c2718d1d9 100755 --- a/usermin/uninstall.pl +++ b/usermin/uninstall.pl @@ -5,14 +5,12 @@ require 'usermin-lib.pl'; sub module_uninstall { -if ($config{'update'}) { - &foreign_require("cron", "cron-lib.pl"); - $cron_cmd = "$module_config_directory/update.pl"; - foreach $j (&cron::list_cron_jobs()) { - if ($j->{'user'} eq 'root' && - $j->{'command'} eq $cron_cmd) { - &cron::delete_cron_job($j); - } +&foreign_require("cron", "cron-lib.pl"); +my $cron_cmd = "$module_config_directory/update.pl"; +foreach my $j (&cron::list_cron_jobs()) { + if ($j->{'user'} eq 'root' && + $j->{'command'} eq $cron_cmd) { + &cron::delete_cron_job($j); } } }