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:
parent
44ae8ebae5
commit
036232285c
4 changed files with 44 additions and 2 deletions
22
src/main.rs
22
src/main.rs
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue