|
|
|
@ -1,7 +1,6 @@ |
|
|
|
|
<?php |
|
|
|
|
|
|
|
|
|
class DatabaseSetupException extends \OC\HintException |
|
|
|
|
{ |
|
|
|
|
class DatabaseSetupException extends \OC\HintException { |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
class OC_Setup { |
|
|
|
@ -162,23 +161,4 @@ class OC_Setup { |
|
|
|
|
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/.htaccess', $content); |
|
|
|
|
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', ''); |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
* Post installation checks |
|
|
|
|
*/ |
|
|
|
|
public static function postSetupCheck($params) { |
|
|
|
|
// setup was successful -> webdav testing now |
|
|
|
|
$l = self::getTrans(); |
|
|
|
|
if (OC_Util::isWebDAVWorking()) { |
|
|
|
|
header("Location: ".OC::$WEBROOT.'/'); |
|
|
|
|
} else { |
|
|
|
|
|
|
|
|
|
$error = $l->t('Your web server is not yet properly setup to allow files synchronization because the WebDAV interface seems to be broken.'); |
|
|
|
|
$hint = $l->t('Please double check the <a href=\'%s\'>installation guides</a>.', |
|
|
|
|
\OC_Helper::linkToDocs('admin-install')); |
|
|
|
|
|
|
|
|
|
OC_Template::printErrorPage($error, $hint); |
|
|
|
|
exit(); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|