From 101406eba7b8c3aed56f80519ef81d76e681d209 Mon Sep 17 00:00:00 2001 From: Georg Ehrke Date: Sat, 5 May 2012 18:29:02 +0200 Subject: fix writing in remote folder --- apps/calendar/appinfo/app.php | 3 +++ apps/calendar/appinfo/install.php | 4 ---- apps/calendar/appinfo/update.php | 3 --- apps/contacts/appinfo/app.php | 3 +++ apps/contacts/appinfo/install.php | 4 ---- apps/contacts/appinfo/update.php | 4 ---- apps/files/appinfo/app.php | 3 +++ apps/files/appinfo/install.php | 4 ---- apps/files/appinfo/update.php | 4 ---- 9 files changed, 9 insertions(+), 23 deletions(-) delete mode 100644 apps/calendar/appinfo/install.php delete mode 100644 apps/contacts/appinfo/install.php delete mode 100644 apps/contacts/appinfo/update.php delete mode 100644 apps/files/appinfo/install.php delete mode 100644 apps/files/appinfo/update.php (limited to 'apps') diff --git a/apps/calendar/appinfo/app.php b/apps/calendar/appinfo/app.php index b02fc602c6b..055066de0df 100755 --- a/apps/calendar/appinfo/app.php +++ b/apps/calendar/appinfo/app.php @@ -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 index fc5cd892394..00000000000 --- a/apps/calendar/appinfo/install.php +++ /dev/null @@ -1,4 +0,0 @@ -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 diff --git a/apps/contacts/appinfo/app.php b/apps/contacts/appinfo/app.php index e5e1d572f2d..c8c1d779dae 100755 --- a/apps/contacts/appinfo/app.php +++ b/apps/contacts/appinfo/app.php @@ -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 index 172ace5b1a6..00000000000 --- a/apps/contacts/appinfo/install.php +++ /dev/null @@ -1,4 +0,0 @@ - "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 @@ -