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 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() {