mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-01-31 18:09:20 +08:00
fix getAllBackupVolumes
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
9388ec5798
commit
14a77ea88d
1 changed files with 9 additions and 2 deletions
|
@ -522,8 +522,15 @@ class DockerActionManager
|
|||
|
||||
private function getAllBackupVolumes() : array {
|
||||
$id = 'nextcloud-aio-apache';
|
||||
|
||||
return array_unique($this->getBackupVolumes($id));
|
||||
$backupVolumesArray = $this->getBackupVolumes($id);
|
||||
// Flatten array
|
||||
$backupVolumesArrayFlat = iterator_to_array(
|
||||
new \RecursiveIteratorIterator(
|
||||
new \RecursiveArrayIterator($backupVolumesArray)
|
||||
),
|
||||
$use_keys = false
|
||||
);
|
||||
return array_unique($backupVolumesArrayFlat);
|
||||
}
|
||||
|
||||
private function GetRepoDigestsOfContainer(string $containerName) : ?array {
|
||||
|
|
Loading…
Reference in a new issue