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

add options for enabling/disabling apps

This commit is contained in:
Robin Appelman 2026-01-19 18:48:40 +01:00
commit 036232285c
4 changed files with 44 additions and 2 deletions

View file

@ -560,6 +560,28 @@ async fn setup(docker: &Docker, options: CloudOptions, config: &HazeConfig) -> R
.await?;
}
for app in &config.auto_setup.enable_apps {
cloud
.exec(
docker,
vec!["occ", "app:enable", app.as_str(), "--force"],
false,
Vec::<String>::default(),
)
.await?;
}
for app in &config.auto_setup.disable_apps {
cloud
.exec(
docker,
vec!["occ", "app:disable", app.as_str()],
false,
Vec::<String>::default(),
)
.await?;
}
for service in cloud.services() {
for app in service.apps() {
cloud