mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 14:36:52 +00:00
improve is_backup_container_running check
Signed-off-by: szaimen <szaimen@e.mail.de>
This commit is contained in:
parent
3e5ab69512
commit
e3826f85b9
3 changed files with 28 additions and 19 deletions
|
|
@ -600,4 +600,13 @@ class DockerActionManager
|
|||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public function isBackupContainerRunning() : bool {
|
||||
$id = 'nextcloud-aio-borgbackup';
|
||||
$backupContainer = $this->containerDefinitionFetcher->GetContainerById($id);
|
||||
if ($this->GetContainerRunningState($backupContainer) instanceof RunningState) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue