putting activation inside activate.php

This commit is contained in:
Michiel@unhosted 2011-09-12 00:32:38 +02:00
parent 994c7f3dad
commit 6e6be3aa8f
2 changed files with 11 additions and 1 deletions

View file

@ -1 +0,0 @@
apps/user_webfinger/

View file

@ -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;";
}