mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-09-19 09:47:24 +00:00
Store office suite choice in a single config option
Previously it was three boolean options, which were supposed to be mutually exclusive, which had to be taken care of manually. Also previously there was only indirect indication of the choice "none", which is brittle, too. Signed-off-by: Pablo Zmdl <pablo@nextcloud.com>
This commit is contained in:
@@ -12,6 +12,7 @@ use AIO\Container\ContainerVolume;
|
||||
use AIO\Container\ContainerVolumes;
|
||||
use AIO\Data\ConfigurationManager;
|
||||
use AIO\Data\DataConst;
|
||||
use AIO\Data\OfficeSuite;
|
||||
use AIO\Docker\DockerActionManager;
|
||||
|
||||
readonly class ContainerDefinitionFetcher {
|
||||
@@ -75,15 +76,15 @@ readonly class ContainerDefinitionFetcher {
|
||||
continue;
|
||||
}
|
||||
} elseif ($entry['container_name'] === 'nextcloud-aio-onlyoffice') {
|
||||
if (!$this->configurationManager->isOnlyofficeEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Onlyoffice) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($entry['container_name'] === 'nextcloud-aio-eurooffice') {
|
||||
if (!$this->configurationManager->isEuroofficeEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Eurooffice) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($entry['container_name'] === 'nextcloud-aio-collabora') {
|
||||
if (!$this->configurationManager->isCollaboraEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Collabora) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($entry['container_name'] === 'nextcloud-aio-talk') {
|
||||
@@ -192,15 +193,15 @@ readonly class ContainerDefinitionFetcher {
|
||||
continue;
|
||||
}
|
||||
} elseif ($value === 'nextcloud-aio-onlyoffice') {
|
||||
if (!$this->configurationManager->isOnlyofficeEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Onlyoffice) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($value === 'nextcloud-aio-eurooffice') {
|
||||
if (!$this->configurationManager->isEuroofficeEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Eurooffice) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($value === 'nextcloud-aio-collabora') {
|
||||
if (!$this->configurationManager->isCollaboraEnabled) {
|
||||
if ($this->configurationManager->officeSuite !== OfficeSuite::Collabora) {
|
||||
continue;
|
||||
}
|
||||
} elseif ($value === 'nextcloud-aio-talk') {
|
||||
|
||||
Reference in New Issue
Block a user