mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-02-16 18:50:20 +00: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 {
|
private function getAllBackupVolumes() : array {
|
||||||
$id = 'nextcloud-aio-apache';
|
$id = 'nextcloud-aio-apache';
|
||||||
|
$backupVolumesArray = $this->getBackupVolumes($id);
|
||||||
return array_unique($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 {
|
private function GetRepoDigestsOfContainer(string $containerName) : ?array {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue