1
0
Fork 0
mirror of https://codeberg.org/icewind/haze.git synced 2026-06-03 17:14:08 +02:00

auto configure av when kaspersky is enabled

This commit is contained in:
Robin Appelman 2022-01-28 15:48:19 +01:00
commit 9eed1b9eda

View file

@ -90,4 +90,12 @@ impl ServiceTrait for Kaspersky {
fn apps(&self) -> &'static [&'static str] {
&["files_antivirus"]
}
async fn post_setup(&self, _docker: &Docker, _cloud_id: &str) -> Result<Vec<String>> {
Ok(vec![
"occ config:app:set files_antivirus av_mode --value=kaspersky".into(),
"occ config:app:set files_antivirus av_host --value=kaspersky".into(),
"occ config:app:set files_antivirus av_port --value=80".into(),
])
}
}