Add configurable maintenance mode file support
All checks were successful
Build and Release / build-and-release (push) Successful in 1m32s

Implement maintenance_mode_file configuration option in NotificationConfig
to allow customizable file paths for suppressing email notifications.
Updates maintenance mode check to use configured path instead of hardcoded
/tmp/cm-maintenance file.
This commit is contained in:
2025-11-10 07:48:15 +01:00
parent c8db463204
commit d31c2384df
6 changed files with 14 additions and 7 deletions

View File

@@ -59,6 +59,6 @@ impl NotificationManager {
}
fn is_maintenance_mode(&self) -> bool {
std::fs::metadata("/tmp/cm-maintenance").is_ok()
std::fs::metadata(&self.config.maintenance_mode_file).is_ok()
}
}