remove post setup check
This commit is contained in:
parent
831d34f084
commit
21412559df
|
@ -20,9 +20,6 @@ $application->registerRoutes($this, array('routes' => array(
|
||||||
// Post installation check
|
// Post installation check
|
||||||
|
|
||||||
/** @var $this OCP\Route\IRouter */
|
/** @var $this OCP\Route\IRouter */
|
||||||
$this->create('post_setup_check', '/post-setup-check')
|
|
||||||
->action('OC_Setup', 'postSetupCheck');
|
|
||||||
|
|
||||||
// Core ajax actions
|
// Core ajax actions
|
||||||
// Search
|
// Search
|
||||||
$this->create('search_ajax_search', '/search/ajax/search.php')
|
$this->create('search_ajax_search', '/search/ajax/search.php')
|
||||||
|
|
|
@ -22,12 +22,10 @@ class Controller {
|
||||||
if(count($e) > 0) {
|
if(count($e) > 0) {
|
||||||
$options = array_merge($opts, $post, $errors);
|
$options = array_merge($opts, $post, $errors);
|
||||||
$this->display($options);
|
$this->display($options);
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$this->finishSetup();
|
$this->finishSetup();
|
||||||
}
|
}
|
||||||
}
|
} else {
|
||||||
else {
|
|
||||||
$options = array_merge($opts, $post);
|
$options = array_merge($opts, $post);
|
||||||
$this->display($options);
|
$this->display($options);
|
||||||
}
|
}
|
||||||
|
@ -53,8 +51,7 @@ class Controller {
|
||||||
}
|
}
|
||||||
|
|
||||||
public function finishSetup() {
|
public function finishSetup() {
|
||||||
header( 'Location: '.\OC_Helper::linkToRoute( 'post_setup_check' ));
|
\OC_Util::redirectToDefaultPage();
|
||||||
exit();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public function loadAutoConfig($post) {
|
public function loadAutoConfig($post) {
|
||||||
|
|
|
@ -1,7 +1,6 @@
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
class DatabaseSetupException extends \OC\HintException
|
class DatabaseSetupException extends \OC\HintException {
|
||||||
{
|
|
||||||
}
|
}
|
||||||
|
|
||||||
class OC_Setup {
|
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').'/.htaccess', $content);
|
||||||
file_put_contents(OC_Config::getValue('datadirectory', OC::$SERVERROOT.'/data').'/index.html', '');
|
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();
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue