mirror of
https://github.com/nextcloud/server.git
synced 2026-03-27 21:03:39 -04:00
putting activation inside activate.php
This commit is contained in:
parent
994c7f3dad
commit
6e6be3aa8f
2 changed files with 11 additions and 1 deletions
|
|
@ -1 +0,0 @@
|
|||
apps/user_webfinger/
|
||||
11
apps/user_webfinger/activate.php
Normal file
11
apps/user_webfinger/activate.php
Normal 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;";
|
||||
}
|
||||
Loading…
Reference in a new issue