mirror of
https://codeberg.org/streams/streams.git
synced 2024-09-20 06:35:15 +00:00
create store directory if it's missing before initialising DAV
This commit is contained in:
parent
13c226bdbe
commit
35733ca013
1 changed files with 4 additions and 1 deletions
|
@ -32,6 +32,9 @@ function cloud_init(&$a) {
|
|||
|
||||
require_once('include/reddav.php');
|
||||
|
||||
if(! is_dir('store'))
|
||||
mkdir('store',STORAGE_DEFAULT_PERMISSIONS,false);
|
||||
|
||||
$which = null;
|
||||
if(argc() > 1)
|
||||
$which = argv(1);
|
||||
|
@ -74,7 +77,7 @@ function cloud_init(&$a) {
|
|||
|
||||
$rootDirectory = new RedDirectory('/',$auth);
|
||||
$server = new DAV\Server($rootDirectory);
|
||||
$lockBackend = new DAV\Locks\Backend\File('store/data/locks');
|
||||
$lockBackend = new DAV\Locks\Backend\File('store/[data]/locks');
|
||||
$lockPlugin = new DAV\Locks\Plugin($lockBackend);
|
||||
|
||||
$server->addPlugin($lockPlugin);
|
||||
|
|
Loading…
Reference in a new issue