mirror of
https://github.com/schoebel/mars
synced 2025-03-11 07:47:41 +00:00
marsadm: safeguard purge of recent logfiles
This commit is contained in:
parent
6020414d25
commit
54226c78a7
@ -3106,6 +3106,10 @@ sub log_purge_res {
|
||||
$logs{$log} = -1;
|
||||
next;
|
||||
}
|
||||
if (!$force && is_link_recent($log)) {
|
||||
lprint " skipping recent object '$log'\n";
|
||||
next;
|
||||
}
|
||||
if (!$force && $from ne $host) {
|
||||
lprint " skipping foreign object '$log'\n";
|
||||
next;
|
||||
|
Loading…
Reference in New Issue
Block a user