diff options
author | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 19:12:16 +0400 |
---|---|---|
committer | Michiel@unhosted <michiel@unhosted.org> | 2011-10-09 19:12:16 +0400 |
commit | ea702d2bbe73f6b6450e7df92234f46d6975576b (patch) | |
tree | 8687f063d3de130716d2862c08a21aa53687c5b2 /user_webfinger | |
parent | 6cc5878a617cd119936f6cf8713a5303350f5d62 (diff) |
use install.php properly
Diffstat (limited to 'user_webfinger')
-rw-r--r-- | user_webfinger/activate.php | 11 | ||||
-rw-r--r-- | user_webfinger/appinfo/install.php | 5 |
2 files changed, 5 insertions, 11 deletions
diff --git a/user_webfinger/activate.php b/user_webfinger/activate.php deleted file mode 100644 index 50257232a..000000000 --- a/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/user_webfinger/appinfo/install.php b/user_webfinger/appinfo/install.php new file mode 100644 index 000000000..d23ba5353 --- /dev/null +++ b/user_webfinger/appinfo/install.php @@ -0,0 +1,5 @@ +<?php +$thisAppDir = __DIR__; +$appsDir = dirname($thisAppDir); +$ownCloudDir = dirname($appsDir); +symlink($thisAppDir, $ownCloudDir.'/.well-known'); |