mirror of
https://github.com/nextcloud/all-in-one.git
synced 2025-12-20 06:26:57 +00:00
fix the datadir permission problems during install
Signed-off-by: Simon L <szaimen@e.mail.de>
This commit is contained in:
parent
9c0ea8a23c
commit
386533b02f
5 changed files with 10 additions and 22 deletions
|
|
@ -739,14 +739,6 @@ class ConfigurationManager
|
|||
return false;
|
||||
}
|
||||
|
||||
public function shouldDataDirectoryPermissionCheckGetSkipped() : bool {
|
||||
$datadir = $this->GetNextcloudDatadirMount();
|
||||
if ($datadir === 'nextcloud_aio_nextcloud_datadir' || str_starts_with($datadir, '/run/desktop/mnt/host/')) {
|
||||
return true;
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
public function GetNextcloudStartupApps() : string {
|
||||
$apps = getenv('NEXTCLOUD_STARTUP_APPS');
|
||||
if (is_string($apps)) {
|
||||
|
|
|
|||
|
|
@ -348,12 +348,6 @@ class DockerActionManager
|
|||
$replacements[1] = $this->configurationManager->GetNextcloudAdditionalApks();
|
||||
} elseif ($out[1] === 'NEXTCLOUD_ADDITIONAL_PHP_EXTENSIONS') {
|
||||
$replacements[1] = $this->configurationManager->GetNextcloudAdditionalPhpExtensions();
|
||||
} elseif ($out[1] === 'SKIP_DATA_DIRECTORY_PERMISSION_CHECK') {
|
||||
if ($this->configurationManager->shouldDataDirectoryPermissionCheckGetSkipped()) {
|
||||
$replacements[1] = 'yes';
|
||||
} else {
|
||||
$replacements[1] = '';
|
||||
}
|
||||
} else {
|
||||
$secret = $this->configurationManager->GetSecret($out[1]);
|
||||
if ($secret === "") {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue