diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 17:08:44 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-27 17:08:44 +0000 |
commit | 2c7242fff20bc05fef5186efabcc82d4b10972a8 (patch) | |
tree | 15bf3dba42518ec73bbe693ae0abb7d74d4c8976 /etc | |
parent | bf903e99cc9db6935962b9a92e86130c48a919cc (diff) | |
download | pfsense-2c7242fff20bc05fef5186efabcc82d4b10972a8.zip pfsense-2c7242fff20bc05fef5186efabcc82d4b10972a8.tar.gz |
Only deinstall filter reload item if it is presently installed
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/pfsense-utils.inc | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/etc/inc/pfsense-utils.inc b/etc/inc/pfsense-utils.inc index f84beb0..481d303 100644 --- a/etc/inc/pfsense-utils.inc +++ b/etc/inc/pfsense-utils.inc @@ -107,11 +107,13 @@ function tdr_install_cron($should_install) { } break; case false: - if($x > 0) { - unset($config['cron']['item'][$x]); - write_config(); + if($is_installed == true) { + if($x > 0) { + unset($config['cron']['item'][$x]); + write_config(); + } + configure_cron(); } - configure_cron(); break; } } |