1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-04 01:24:09 +02:00

add local clam

This commit is contained in:
Robin Appelman 2025-06-16 18:33:36 +02:00
commit 9824fc9254
6 changed files with 42 additions and 1 deletions

View file

@ -208,3 +208,29 @@ impl ServiceTrait for ClamIcapTls {
])
}
}
#[derive(Debug, Clone, Eq, PartialEq)]
pub struct Clam;
#[async_trait::async_trait]
impl ServiceTrait for Clam {
fn name(&self) -> &str {
"clamav"
}
fn apps(&self) -> &'static [&'static str] {
&["files_antivirus"]
}
async fn post_setup(
&self,
_docker: &Docker,
_cloud_id: &str,
_config: &HazeConfig,
) -> Result<Vec<String>> {
Ok(vec![
"occ config:app:set files_antivirus av_mode --value=executable".into(),
"occ config:app:set files_antivirus av_path --value=/bin/clamscan".into(),
])
}
}