diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-02 16:41:00 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-02 16:41:23 +0200 |
commit | da03d057007d885914dfac7c92cca51747b5f44b (patch) | |
tree | 042198fa223b761710480fdc96466649fae321d6 /apps/files | |
parent | c536e930f40f1bf4dd551ca6fefca15b2f88eee7 (diff) | |
download | nextcloud-server-da03d057007d885914dfac7c92cca51747b5f44b.tar.gz nextcloud-server-da03d057007d885914dfac7c92cca51747b5f44b.zip |
create folder 'remote' for the remote services like caldav, carddav and webdav
Diffstat (limited to 'apps/files')
-rw-r--r-- | apps/files/appinfo/install.php | 4 | ||||
-rw-r--r-- | apps/files/appinfo/remote.php (renamed from apps/files/webdav.php) | 3 | ||||
-rw-r--r-- | apps/files/appinfo/update.php | 4 |
3 files changed, 9 insertions, 2 deletions
diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php new file mode 100644 index 00000000000..d00a1a321eb --- /dev/null +++ b/apps/files/appinfo/install.php @@ -0,0 +1,4 @@ +<?php +if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ + file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPROOT . '/apps/files/appinfo/webdav.php')); +}
\ No newline at end of file diff --git a/apps/files/webdav.php b/apps/files/appinfo/remote.php index 940bbfef52e..232a61ed944 100644 --- a/apps/files/webdav.php +++ b/apps/files/appinfo/remote.php @@ -25,7 +25,6 @@ // Do not load FS ... $RUNTIME_NOSETUPFS = true; -require_once('../inc.php'); // only need filesystem apps $RUNTIME_APPTYPES=array('filesystem','authentication'); @@ -41,7 +40,7 @@ $publicDir = new OC_Connector_Sabre_Directory(''); // Fire up server $server = new Sabre_DAV_Server($publicDir); -$server->setBaseUri(OC::$APPSWEBROOT.'/apps/files/webdav.php'); +$server->setBaseUri(OC::$WEBROOT.'/remote/webdav.php'); // Load plugins $server->addPlugin(new Sabre_DAV_Auth_Plugin($authBackend,'ownCloud')); diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php new file mode 100644 index 00000000000..d00a1a321eb --- /dev/null +++ b/apps/files/appinfo/update.php @@ -0,0 +1,4 @@ +<?php +if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ + file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPROOT . '/apps/files/appinfo/webdav.php')); +}
\ No newline at end of file |