mirror of
https://github.com/webmin/webmin.git
synced 2026-03-20 16:50:24 +00:00
Delete in reverse order
This commit is contained in:
@@ -12,7 +12,7 @@ require './logrotate-lib.pl';
|
||||
# Delete the sections
|
||||
$parent = &get_config_parent();
|
||||
$conf = $parent->{'members'};
|
||||
foreach $d (@d) {
|
||||
foreach $d (sort { $b <=> $a } @d) {
|
||||
$log = $conf->[$d];
|
||||
&lock_file($log->{'file'});
|
||||
&save_directive($parent, $log, undef);
|
||||
|
||||
Reference in New Issue
Block a user