diff options
author | Georg Ehrke <dev@georgswebsite.de> | 2012-05-05 18:29:02 +0200 |
---|---|---|
committer | Georg Ehrke <dev@georgswebsite.de> | 2012-05-05 18:29:26 +0200 |
commit | 101406eba7b8c3aed56f80519ef81d76e681d209 (patch) | |
tree | f96974b98dc4cae35f3edf0e248280bf1797a5c3 /apps/files/appinfo | |
parent | 2facf509cc172ab822f573f3b582caef59995dc1 (diff) | |
download | nextcloud-server-101406eba7b8c3aed56f80519ef81d76e681d209.tar.gz nextcloud-server-101406eba7b8c3aed56f80519ef81d76e681d209.zip |
fix writing in remote folder
Diffstat (limited to 'apps/files/appinfo')
-rwxr-xr-x | apps/files/appinfo/app.php | 3 | ||||
-rw-r--r-- | apps/files/appinfo/install.php | 4 | ||||
-rw-r--r-- | apps/files/appinfo/update.php | 4 |
3 files changed, 3 insertions, 8 deletions
diff --git a/apps/files/appinfo/app.php b/apps/files/appinfo/app.php index 355b77d5e7e..5611acd2abc 100755 --- a/apps/files/appinfo/app.php +++ b/apps/files/appinfo/app.php @@ -9,3 +9,6 @@ OCP\App::registerAdmin('files','admin'); OCP\App::addNavigationEntry( array( "id" => "files_index", "order" => 0, "href" => OCP\Util::linkTo( "files", "index.php" ), "icon" => OCP\Util::imagePath( "core", "places/home.svg" ), "name" => $l->t("Files") )); OC_Search::registerProvider('OC_Search_Provider_File'); +if(!file_exists(OC::$SERVERROOT.'/remote/webdav.php')){ + file_put_contents(OC::$SERVERROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php')); +}
\ No newline at end of file diff --git a/apps/files/appinfo/install.php b/apps/files/appinfo/install.php deleted file mode 100644 index 8c1430900ae..00000000000 --- a/apps/files/appinfo/install.php +++ /dev/null @@ -1,4 +0,0 @@ -<?php -if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ - file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php')); -} diff --git a/apps/files/appinfo/update.php b/apps/files/appinfo/update.php deleted file mode 100644 index f7ad31f6517..00000000000 --- a/apps/files/appinfo/update.php +++ /dev/null @@ -1,4 +0,0 @@ -<?php -if(!file_exists(OC::$WEBROOT.'/remote/webdav.php')){ - file_put_contents(OC::$WEBROOT.'/remote/webdav.php', file_get_contents(OC::$APPSROOT . '/apps/files/appinfo/webdav.php')); -}
\ No newline at end of file |