mirror of
https://github.com/nextcloud/all-in-one.git
synced 2026-06-10 00:27:01 +00:00
Compare commits
2 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| 60dd6e5041 | |||
| 321527946a |
@@ -25,6 +25,7 @@ use Psr\Http\Message\ServerRequestInterface as Request;
|
||||
require __DIR__ . '/../vendor/autoload.php';
|
||||
|
||||
$container = \AIO\DependencyInjection::GetContainer();
|
||||
$container->get(\AIO\Data\ConfigurationManager::class)->performMigrations();
|
||||
$dataConst = $container->get(\AIO\Data\DataConst::class);
|
||||
|
||||
// Create app
|
||||
|
||||
@@ -100,13 +100,14 @@ class ConfigurationManager
|
||||
}
|
||||
|
||||
public bool $isEuroofficeEnabled {
|
||||
get => $this->get('isEuroofficeEnabled', false);
|
||||
// Type-cast because old configs could have 1/0 for this key.
|
||||
get => (bool) $this->get('isEuroofficeEnabled', true);
|
||||
set { $this->set('isEuroofficeEnabled', $value); }
|
||||
}
|
||||
|
||||
public bool $isCollaboraEnabled {
|
||||
// Type-cast because old configs could have 1/0 for this key.
|
||||
get => (bool) $this->get('isCollaboraEnabled', true);
|
||||
get => (bool) $this->get('isCollaboraEnabled', false);
|
||||
set { $this->set('isCollaboraEnabled', $value); }
|
||||
}
|
||||
|
||||
@@ -927,7 +928,16 @@ class ConfigurationManager
|
||||
if (is_string($apps)) {
|
||||
return trim($apps);
|
||||
}
|
||||
return 'deck twofactor_totp tasks calendar contacts notes';
|
||||
return 'deck twofactor_totp tasks calendar contacts notes eurooffice';
|
||||
}
|
||||
|
||||
public function performMigrations(): void {
|
||||
if (!$this->get('eurooffice_default_migration_v1', false)) {
|
||||
$this->isCollaboraEnabled = false;
|
||||
$this->isOnlyofficeEnabled = false;
|
||||
$this->isEuroofficeEnabled = true;
|
||||
$this->set('eurooffice_default_migration_v1', true);
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
@@ -10,7 +10,7 @@ Included are:
|
||||
- High performance backend for Nextcloud Files (Client Push)
|
||||
- Redis & APCU for performant caching
|
||||
- PostgreSQL as database
|
||||
- Nextcloud Office (optional)
|
||||
- EuroOffice Document Server (default) or Nextcloud Office / OnlyOffice (optional)
|
||||
- High performance backend for Nextcloud Talk and TURN-server (optional)
|
||||
- Nextcloud Talk Recording-server (optional)
|
||||
- Backup solution (optional, based on [BorgBackup](https://github.com/borgbackup/borg#what-is-borgbackup))
|
||||
|
||||
Reference in New Issue
Block a user