summaryrefslogtreecommitdiffstats
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
parent994c7f3dad243e407dbc4f11feab239b211b3d6b (diff)
downloadnextcloud-server-6e6be3aa8f73ab2bb4b9a8be3e3dc84fcfe0f66b.tar.gz
nextcloud-server-6e6be3aa8f73ab2bb4b9a8be3e3dc84fcfe0f66b.zip
putting activation inside activate.php
l---------.well-known1
-rw-r--r--apps/user_webfinger/activate.php11
2 files changed, 11 insertions, 1 deletions
diff --git a/.well-known b/.well-known
deleted file mode 120000
index 2587475f56a..00000000000
--- a/.well-known
+++ /dev/null
@@ -1 +0,0 @@
-apps/user_webfinger/ \ No newline at end of file
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;";
+}