mirror of
https://github.com/LibreSign/libresign.git
synced 2025-12-17 21:12:16 +01:00
fix: use correct Nextcloud instanceid in PKI path initialization
The initializePkiConfigPath method was using a variable named
'instanceId' from getSystemValue('instanceid') which could be confused
with LibreSign's instance_id. Changed to 'systemInstanceId' for clarity
and consistency with getConfigPathByParams method.
This ensures the PKI directories are created in the correct appdata path
using Nextcloud's system instance ID, while the directory name itself
contains LibreSign's CA identifier with its own instance ID.
Signed-off-by: Vitor Mattos <1079143+vitormattos@users.noreply.github.com>
This commit is contained in:
parent
5048bfb07e
commit
73615a77d4
1 changed files with 2 additions and 2 deletions
|
|
@ -363,8 +363,8 @@ abstract class AEngineHandler implements IEngineHandler {
|
|||
}
|
||||
$pkiDirName = $this->caIdentifierService->generatePkiDirectoryName($caId);
|
||||
$dataDir = $this->config->getSystemValue('datadirectory', \OC::$SERVERROOT . '/data/');
|
||||
$instanceId = $this->config->getSystemValue('instanceid');
|
||||
$pkiPath = $dataDir . '/appdata_' . $instanceId . '/libresign/' . $pkiDirName;
|
||||
$systemInstanceId = $this->config->getSystemValue('instanceid');
|
||||
$pkiPath = $dataDir . '/appdata_' . $systemInstanceId . '/libresign/' . $pkiDirName;
|
||||
|
||||
if (!is_dir($pkiPath)) {
|
||||
$this->createDirectoryWithCorrectOwnership($pkiPath);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue