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:
parent
3cac4e4679
commit
93c20bc530
10 changed files with 224 additions and 45 deletions
28
src/main.rs
28
src/main.rs
|
|
@ -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 {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue