Commit 6468c479 authored by Antoine Beaupré's avatar Antoine Beaupré

always add the directory name to service

parent f2340300
......@@ -76,14 +76,8 @@ sub check_rdiff {
}
close(FLAG);
($state, $delta) = check_age($last_bak);
$dir =~ /([^\/]*)\/rdiff-backup/;
if ($1 ne $host) {
# special subdir backup
$dir =~ /([^\/]+)\/?$/;
$service = "backups-$1";
}
else {
$service = 'backups';
}
print_status($host, $state, "$delta hours old$extra_msg", $service);
foreach my $vserver_dir (@vserver_dirs) {
$vsdir = "$dir/$vserver_dir";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment