]> source.dussan.org Git - nextcloud-server.git/commitdiff
putting activation inside activate.php
authorMichiel@unhosted <michiel@unhosted.org>
Sun, 11 Sep 2011 22:32:38 +0000 (00:32 +0200)
committerMichiel@unhosted <michiel@unhosted.org>
Sun, 11 Sep 2011 22:32:38 +0000 (00:32 +0200)
.well-known [deleted symlink]
apps/user_webfinger/activate.php [new file with mode: 0644]

diff --git a/.well-known b/.well-known
deleted file mode 120000 (symlink)
index 2587475..0000000
+++ /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 (file)
index 0000000..6302ca0
--- /dev/null
@@ -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;";
+}