Skip to content

Commit

Permalink
Merge pull request #11226 from owncloud/kill-postsetupcheck-master
Browse files Browse the repository at this point in the history
remove post setup check
  • Loading branch information
Vincent Petry committed Sep 23, 2014
2 parents ff6c533 + 2141255 commit fc42a64
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 30 deletions.
3 changes: 0 additions & 3 deletions core/routes.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,6 @@
// Post installation check

/** @var $this OCP\Route\IRouter */
$this->create('post_setup_check', '/post-setup-check')
->action('OC_Setup', 'postSetupCheck');

// Core ajax actions
// Search
$this->create('search_ajax_search', '/search/ajax/search.php')
Expand Down
9 changes: 3 additions & 6 deletions core/setup/controller.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,12 +22,10 @@ public function run($post) {
if(count($e) > 0) {
$options = array_merge($opts, $post, $errors);
$this->display($options);
}
else {
} else {
$this->finishSetup();
}
}
else {
} else {
$options = array_merge($opts, $post);
$this->display($options);
}
Expand All @@ -53,8 +51,7 @@ public function display($post) {
}

public function finishSetup() {
header( 'Location: '.\OC_Helper::linkToRoute( 'post_setup_check' ));
exit();
\OC_Util::redirectToDefaultPage();
}

public function loadAutoConfig($post) {
Expand Down
22 changes: 1 addition & 21 deletions lib/private/setup.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
<?php

class DatabaseSetupException extends \OC\HintException
{
class DatabaseSetupException extends \OC\HintException {
}

class OC_Setup {
Expand Down Expand Up @@ -162,23 +161,4 @@ public static function protectDataDirectory() {
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();
}
}
}

0 comments on commit fc42a64

Please sign in to comment.