]> source.dussan.org Git - nextcloud-server.git/commitdiff
fix writing in remote folder
authorGeorg Ehrke <dev@georgswebsite.de>
Sat, 5 May 2012 16:29:02 +0000 (18:29 +0200)
committerGeorg Ehrke <dev@georgswebsite.de>
Sat, 5 May 2012 16:29:26 +0000 (18:29 +0200)
apps/calendar/appinfo/app.php
apps/calendar/appinfo/install.php [deleted file]
apps/calendar/appinfo/update.php
apps/contacts/appinfo/app.php
apps/contacts/appinfo/install.php [deleted file]
apps/contacts/appinfo/update.php [deleted file]
apps/files/appinfo/app.php
apps/files/appinfo/install.php [deleted file]
apps/files/appinfo/update.php [deleted file]

index b02fc602c6b33cf63c60380c398d5008575f0656..055066de0df03f66b79438c6f236c694de279827 100755 (executable)
@@ -23,3 +23,6 @@ OCP\App::addNavigationEntry( array(
   'name' => $l->t('Calendar')));
 OCP\App::registerPersonal('calendar', 'settings');
 OC_Search::registerProvider('OC_Search_Provider_Calendar');
+if(!file_exists(OC::$SERVERROOT.'/remote/caldav.php')){
+       file_put_contents(OC::$SERVERROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
+}
\ No newline at end of file
diff --git a/apps/calendar/appinfo/install.php b/apps/calendar/appinfo/install.php
deleted file mode 100644 (file)
index fc5cd89..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
-       file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
-}
index 13d711b84cb1cc41091211f221520a262962111f..ce7f304a49986ae97c7ce364038c78c8de7e6f4f 100755 (executable)
@@ -14,7 +14,4 @@ if (version_compare($installedVersion, '0.2.1', '<')) {
                $stmt = OCP\DB::prepare( 'UPDATE *PREFIX*calendar_calendars SET calendarcolor=? WHERE id=?' );
                $r = $stmt->execute(array($color,$id));
        }
-}
-if(!file_exists(OC::$WEBROOT.'/remote/caldav.php')){
-       file_put_contents(OC::$WEBROOT.'/remote/caldav.php', file_get_contents(OC::$APPSROOT . '/apps/calendar/appinfo/remote.php'));
 }
\ No newline at end of file
index e5e1d572f2dde32d9b3da4aa5c4c13cb0b43e112..c8c1d779daef6013ad4d291568e73f08f76ccc0f 100755 (executable)
@@ -25,3 +25,6 @@ OCP\App::addNavigationEntry( array(
 OCP\App::registerPersonal('contacts','settings');
 OCP\Util::addscript('contacts', 'loader');
 OC_Search::registerProvider('OC_Search_Provider_Contacts');
+if(!file_exists(OC::$SERVERROOT.'/remote/carddav.php')){
+       file_put_contents(OC::$SERVERROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
+}
\ No newline at end of file
diff --git a/apps/contacts/appinfo/install.php b/apps/contacts/appinfo/install.php
deleted file mode 100644 (file)
index 172ace5..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
-       file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
-}
diff --git a/apps/contacts/appinfo/update.php b/apps/contacts/appinfo/update.php
deleted file mode 100644 (file)
index 29bde6c..0000000
+++ /dev/null
@@ -1,4 +0,0 @@
-<?php
-if(!file_exists(OC::$WEBROOT.'/remote/carddav.php')){
-       file_put_contents(OC::$WEBROOT.'/remote/carddav.php', file_get_contents(OC::$APPSROOT . '/apps/contacts/appinfo/remote.php'));
-}
\ No newline at end of file
index 355b77d5e7e3beeb9a2886c5fea9f9c10be780e5..5611acd2abcfd590018f6561108a80a0e10cdd8b 100755 (executable)
@@ -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 (file)
index 8c14309..0000000
+++ /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 (file)
index f7ad31f..0000000
+++ /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