summaryrefslogtreecommitdiffstats
path: root/apps/user_webfinger
diff options
context:
space:
mode:
authorMichiel@unhosted <michiel@unhosted.org>2011-09-12 00:32:38 +0200
committerMichiel@unhosted <michiel@unhosted.org>2011-09-12 00:32:38 +0200
commit6e6be3aa8f73ab2bb4b9a8be3e3dc84fcfe0f66b (patch)
tree41bfa43481d94e915addfaee199189a9338b6a24 /apps/user_webfinger
parent994c7f3dad243e407dbc4f11feab239b211b3d6b (diff)
downloadnextcloud-server-6e6be3aa8f73ab2bb4b9a8be3e3dc84fcfe0f66b.tar.gz
nextcloud-server-6e6be3aa8f73ab2bb4b9a8be3e3dc84fcfe0f66b.zip
putting activation inside activate.php
Diffstat (limited to 'apps/user_webfinger')
-rw-r--r--apps/user_webfinger/activate.php11
1 files changed, 11 insertions, 0 deletions
diff --git a/apps/user_webfinger/activate.php b/apps/user_webfinger/activate.php
new file mode 100644
index 00000000000..6302ca0fa7c
--- /dev/null
+++ b/apps/user_webfinger/activate.php
@@ -0,0 +1,11 @@
+<?php
+$ownCloudBaseUri = substr($_SERVER['REQUEST_URI'],0, -(strlen('/apps/user_webfinger/activate.php')));
+$thisAppDir = __DIR__;
+$appsDir = dirname($thisAppDir);
+$ownCloudDir = dirname($appsDir);
+try{
+ symlink($thisAppDir, $ownCloudDir.'/.well-known');
+ echo "Webfinger should now work.";
+} catch(Exception $e) {
+ echo "Please create a file called '.well-known in the ownCloud root, give the web server user permission to change it, and retry;";
+}