Fix move .lockdb into root dir
This commit is contained in:
parent
e87a32e92f
commit
c12a45597d
@ -61,7 +61,7 @@ $entity = (GETPOST('entity', 'int') ? GETPOST('entity', 'int') : (!empty($conf->
|
|||||||
$publicDir = $conf->dav->multidir_output[$entity].'/public';
|
$publicDir = $conf->dav->multidir_output[$entity].'/public';
|
||||||
$privateDir = $conf->dav->multidir_output[$entity].'/private';
|
$privateDir = $conf->dav->multidir_output[$entity].'/private';
|
||||||
$ecmDir = $conf->ecm->multidir_output[$entity];
|
$ecmDir = $conf->ecm->multidir_output[$entity];
|
||||||
$tmpDir = $conf->dav->multidir_temp[$entity];
|
$tmpDir = $conf->dav->multidir_output[$entity]; // We need root dir, not a dir that can be deleted
|
||||||
//var_dump($tmpDir);mkdir($tmpDir);exit;
|
//var_dump($tmpDir);mkdir($tmpDir);exit;
|
||||||
|
|
||||||
|
|
||||||
@ -151,7 +151,6 @@ if ((empty($conf->global->DAV_ALLOW_PUBLIC_DIR)
|
|||||||
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend));
|
$server->addPlugin(new \Sabre\DAV\Auth\Plugin($authBackend));
|
||||||
}
|
}
|
||||||
// Support for LOCK and UNLOCK
|
// Support for LOCK and UNLOCK
|
||||||
dol_mkdir($tmpDir);
|
|
||||||
$lockBackend = new \Sabre\DAV\Locks\Backend\File($tmpDir . '/.locksdb');
|
$lockBackend = new \Sabre\DAV\Locks\Backend\File($tmpDir . '/.locksdb');
|
||||||
$lockPlugin = new \Sabre\DAV\Locks\Plugin($lockBackend);
|
$lockPlugin = new \Sabre\DAV\Locks\Plugin($lockBackend);
|
||||||
$server->addPlugin($lockPlugin);
|
$server->addPlugin($lockPlugin);
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user