diff --git a/setup/web.sh b/setup/web.sh index 96b0397e..1fda1331 100755 --- a/setup/web.sh +++ b/setup/web.sh @@ -34,6 +34,8 @@ update-rc.d php-fastcgi defaults # Put our webfinger server script into a well-known location. cp tools/webfinger.php /usr/local/bin/mailinabox-webfinger.php chown www-data.www-data /usr/local/bin/mailinabox-webfinger.php +mkdir -p $STORAGE_ROOT/webfinger/acct; +chown -R $STORAGE_USER $STORAGE_ROOT/webfinger # Start services. service nginx restart diff --git a/tools/webfinger.php b/tools/webfinger.php index 2192e089..9fffbca0 100755 --- a/tools/webfinger.php +++ b/tools/webfinger.php @@ -1,9 +1,42 @@ $resource, - ), JSON_PRETTY_PRINT); + echo file_get_contents($fn); + + //json_encode(array( + // subject => $resource, + //), JSON_PRETTY_PRINT); ?>