fix(worker/mailcow): executing mailcow backup in the mailcow dir
Build and Deploy / build-docker (push) Successful in 5m44s Details

This commit is contained in:
antifallobst 2023-12-17 22:04:36 +01:00
parent 2a3fa4f2fc
commit 06bd717dfb
Signed by: antifallobst
GPG Key ID: 2B4F402172791BAF
1 changed files with 2 additions and 1 deletions

View File

@ -1,5 +1,5 @@
use crate::backend::backup;
use anyhow::{bail, Context, Error, Result};
use anyhow::{bail, Context, Result};
use log::{error, info};
use sqlx::SqlitePool;
use std::fs::{create_dir_all, remove_dir_all, File};
@ -70,6 +70,7 @@ fn perform_backup(backup: backup::Backup) -> Result<()> {
.arg("all")
.env("MAILCOW_BACKUP_LOCATION", &tmp)
.env("PATH", "/bin:/usr/bin:/host/usr/bin")
.current_dir(&dir)
.status()?;
if !status.success() {