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/contacts | |
parent | 2facf509cc172ab822f573f3b582caef59995dc1 (diff) | |
download | nextcloud-server-101406eba7b8c3aed56f80519ef81d76e681d209.tar.gz nextcloud-server-101406eba7b8c3aed56f80519ef81d76e681d209.zip |
fix writing in remote folder
Diffstat (limited to 'apps/contacts')
-rwxr-xr-x | apps/contacts/appinfo/app.php | 3 | ||||
-rw-r--r-- | apps/contacts/appinfo/install.php | 4 | ||||
-rw-r--r-- | apps/contacts/appinfo/update.php | 4 |
3 files changed, 3 insertions, 8 deletions
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 @@ -<?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 index 29bde6c052f..00000000000 --- a/apps/contacts/appinfo/update.php +++ /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 |