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

add notify_push service

This commit is contained in:
Robin Appelman 2021-07-30 19:12:58 +02:00
commit 93c20bc530
10 changed files with 224 additions and 45 deletions

View file

@ -79,15 +79,31 @@ async fn main() -> Result<()> {
)
.await?;
cloud
.exec(
.exec_with_output(
&mut docker,
vec![
"sed",
"-i",
&format!("s/0 => 'localhost'/'{}'/", cloud.ip.unwrap()),
"config/config.php",
"occ",
"config:system:set",
"trusted_domains",
"1",
"--value",
&format!("{}", cloud.ip.unwrap()),
],
false,
Option::<&mut Vec<u8>>::None,
)
.await?;
cloud
.exec_with_output(
&mut docker,
vec![
"occ",
"config:system:set",
"trusted_domains",
"2",
"--value",
"cloud",
],
Option::<&mut Vec<u8>>::None,
)
.await?;
for service in &cloud.services {