Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
die_coolen_jungs
our_own_cloud_project
Commits
fc42a64e
Commit
fc42a64e
authored
Sep 23, 2014
by
Vincent Petry
Browse files
Merge pull request #11226 from owncloud/kill-postsetupcheck-master
remove post setup check
parents
ff6c5331
21412559
Changes
3
Hide whitespace changes
Inline
Side-by-side
core/routes.php
View file @
fc42a64e
...
...
@@ -20,9 +20,6 @@ $application->registerRoutes($this, array('routes' => array(
// 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'
)
...
...
core/setup/controller.php
View file @
fc42a64e
...
...
@@ -22,12 +22,10 @@ class Controller {
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
);
}
...
...
@@ -53,8 +51,7 @@ class Controller {
}
public
function
finishSetup
()
{
header
(
'Location: '
.
\
OC_Helper
::
linkToRoute
(
'post_setup_check'
));
exit
();
\
OC_Util
::
redirectToDefaultPage
();
}
public
function
loadAutoConfig
(
$post
)
{
...
...
lib/private/setup.php
View file @
fc42a64e
<?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
();
}
}
}
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment