fix(worker/mailcow): executing mailcow backup in the mailcow dir
Build and Deploy / build-docker (push) Successful in 5m44s
Details
Build and Deploy / build-docker (push) Successful in 5m44s
Details
This commit is contained in:
parent
2a3fa4f2fc
commit
06bd717dfb
|
@ -1,5 +1,5 @@
|
||||||
use crate::backend::backup;
|
use crate::backend::backup;
|
||||||
use anyhow::{bail, Context, Error, Result};
|
use anyhow::{bail, Context, Result};
|
||||||
use log::{error, info};
|
use log::{error, info};
|
||||||
use sqlx::SqlitePool;
|
use sqlx::SqlitePool;
|
||||||
use std::fs::{create_dir_all, remove_dir_all, File};
|
use std::fs::{create_dir_all, remove_dir_all, File};
|
||||||
|
@ -70,6 +70,7 @@ fn perform_backup(backup: backup::Backup) -> Result<()> {
|
||||||
.arg("all")
|
.arg("all")
|
||||||
.env("MAILCOW_BACKUP_LOCATION", &tmp)
|
.env("MAILCOW_BACKUP_LOCATION", &tmp)
|
||||||
.env("PATH", "/bin:/usr/bin:/host/usr/bin")
|
.env("PATH", "/bin:/usr/bin:/host/usr/bin")
|
||||||
|
.current_dir(&dir)
|
||||||
.status()?;
|
.status()?;
|
||||||
|
|
||||||
if !status.success() {
|
if !status.success() {
|
||||||
|
|
Loading…
Reference in New Issue