aboutsummaryrefslogtreecommitdiffstats
path: root/apps/user_webfinger
diff options
context:
space:
mode:
authorMichiel@unhosted <michiel@unhosted.org>2011-10-09 17:12:16 +0200
committerMichiel@unhosted <michiel@unhosted.org>2011-10-09 17:12:16 +0200
commitf4fb6356cd5d9143f59ad41425d74fb35bbe68fd (patch)
tree7e5920a3e03b1f12b29c246e36219195067a2781 /apps/user_webfinger
parentbf017fb4bdae355675d5b81755ed0c738cf58d2e (diff)
downloadnextcloud-server-f4fb6356cd5d9143f59ad41425d74fb35bbe68fd.tar.gz
nextcloud-server-f4fb6356cd5d9143f59ad41425d74fb35bbe68fd.zip
use install.php properly
Diffstat (limited to 'apps/user_webfinger')
-rw-r--r--apps/user_webfinger/activate.php11
-rw-r--r--apps/user_webfinger/appinfo/install.php5
2 files changed, 5 insertions, 11 deletions
diff --git a/apps/user_webfinger/activate.php b/apps/user_webfinger/activate.php
deleted file mode 100644
index 50257232ae4..00000000000
--- a/apps/user_webfinger/activate.php
+++ /dev/null
@@ -1,11 +0,0 @@
-<?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.\n";
-} 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.\n";
-}
diff --git a/apps/user_webfinger/appinfo/install.php b/apps/user_webfinger/appinfo/install.php
new file mode 100644
index 00000000000..d23ba535394
--- /dev/null
+++ b/apps/user_webfinger/appinfo/install.php
@@ -0,0 +1,5 @@
+<?php
+$thisAppDir = __DIR__;
+$appsDir = dirname($thisAppDir);
+$ownCloudDir = dirname($appsDir);
+symlink($thisAppDir, $ownCloudDir.'/.well-known');